File tree 2 files changed +29
-26
lines changed
2 files changed +29
-26
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,10 @@ jobs:
15
15
- name : Setup Node.js
16
16
uses : actions/setup-node@v3
17
17
with :
18
- node-version : ' 18 '
18
+ node-version : 20
19
19
20
20
- name : Setup pnpm
21
- uses : pnpm/action-setup@v2
22
- with :
23
- version : 8
21
+ uses : pnpm/action-setup@v4
24
22
25
23
- name : Install dependencies
26
24
run : pnpm install
Original file line number Diff line number Diff line change 1
- name : Publish to NPM
1
+ name : Release
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - ' v*'
5
+ branches :
6
+ - main # or your default branch
7
+
8
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
7
9
8
10
jobs :
9
- publish :
11
+ release :
12
+ name : Release
10
13
runs-on : ubuntu-latest
11
14
steps :
12
- - uses : actions/checkout@v3
13
-
15
+ - name : Checkout Repo
16
+ uses : actions/checkout@v3
17
+
14
18
- name : Setup Node.js
15
19
uses : actions/setup-node@v3
16
20
with :
17
- node-version : ' 18'
18
- registry-url : ' https://registry.npmjs.org'
19
-
21
+ node-version : 20
22
+
20
23
- name : Setup pnpm
21
- uses : pnpm/action-setup@v2
22
- with :
23
- version : 8
24
-
25
- - name : Install dependencies
24
+ uses : pnpm/action-setup@v4
25
+
26
+ - name : Install Dependencies
26
27
run : pnpm install
27
-
28
- - name : Build
29
- run : pnpm build
30
-
31
- - name : Publish to NPM
32
- run : pnpm publish --no-git-checks
33
- env :
34
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
35
28
29
+ - name : Build Packages
30
+ run : |
31
+ pnpm build --no-cache
32
+
33
+ - name : Create Release Pull Request or Publish to npm
34
+ id : changesets
35
+ uses : changesets/action@v1
36
+ with :
37
+ publish : pnpm release
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments