File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9
+
10
+ jobs :
11
+ release :
12
+ name : Release
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : write
16
+ issues : write
17
+ pull-requests : write
18
+ environment : NPM
19
+ steps :
20
+ - name : Checkout Repo
21
+ uses : actions/checkout@v3
22
+
23
+ - name : Setup pnpm
24
+
25
+ with :
26
+ version : 9.4.0
27
+
28
+ - name : Setup Node.js
29
+ uses : actions/setup-node@v3
30
+ with :
31
+ node-version : 20.15.0
32
+
33
+ - name : Install Dependencies
34
+ run : pnpm install
35
+
36
+ - name : Build Packages
37
+ run : pnpm build
38
+
39
+ - name : Create Release Pull Request or Publish to NPM
40
+ uses : changesets/action@v1
41
+ with :
42
+ publish : pnpm release
43
+ commit : " chore(release): publish packages"
44
+ title : " Publish packages"
45
+ createGithubReleases : true
46
+ env :
47
+ GITHUB_TOKEN : ${{ github.token }}
48
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments