-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (37 loc) · 1.15 KB
/
release-please.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: cypress-vite
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
with:
node-version: 18.x
if: ${{ steps.release.outputs.release_created }}
- name: Set pnpm publishing config
run:
pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
env:
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
- name: Install dependencies and build
run: pnpm i && pnpm build
if: ${{ steps.release.outputs.release_created }}
- name: Publish to npm
run: pnpm publish
if: ${{ steps.release.outputs.release_created }}