File tree Expand file tree Collapse file tree 4 files changed +55
-1306
lines changed Expand file tree Collapse file tree 4 files changed +55
-1306
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
on :
3
- release :
4
- types : [created]
3
+ issue_comment :
4
+ types : [created, deleted]
5
+ push :
6
+ branches :
7
+ - master
5
8
jobs :
6
- build :
9
+ check :
7
10
runs-on : ubuntu-latest
8
- name : Publish package
11
+ name : Context check
12
+ outputs :
13
+ continue : ${{ steps.check.outputs.continue }}
14
+ workflow : ${{ steps.check.outputs.workflow }}
15
+ steps :
16
+ - name : Checkout the repository
17
+ uses : actions/checkout@v4
18
+ - name : Context check
19
+ id : check
20
+ uses : trigensoftware/simple-release-action@latest
21
+ with :
22
+ workflow : check
23
+ github-token : ${{ secrets.GITHUB_TOKEN }}
24
+ pull-request :
25
+ runs-on : ubuntu-latest
26
+ name : Pull request
27
+ needs : check
28
+ if : needs.check.outputs.workflow == 'pull-request'
29
+ steps :
30
+ - name : Checkout the repository
31
+ uses : actions/checkout@v4
32
+ - name : Create or update pull request
33
+ uses : trigensoftware/simple-release-action@latest
34
+ with :
35
+ workflow : pull-request
36
+ github-token : ${{ secrets.GITHUB_TOKEN }}
37
+ release :
38
+ runs-on : ubuntu-latest
39
+ name : Release
40
+ needs : check
41
+ if : needs.check.outputs.workflow == 'release'
9
42
steps :
10
43
- name : Checkout the repository
11
44
uses : actions/checkout@v4
21
54
registry-url : ' https://registry.npmjs.org'
22
55
- name : Install dependencies
23
56
run : pnpm install
24
- - name : Publish
25
- run : pnpm publish --no-git-checks --tag $NPM_TAG
26
- env :
27
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
28
- NPM_TAG : ${{ contains(github.ref_name, '-beta') && 'next' || 'latest' }}
57
+ - name : Release
58
+ uses : trigensoftware/simple-release-action@latest
59
+ with :
60
+ workflow : release
61
+ github-token : ${{ secrets.GITHUB_TOKEN }}
62
+ npm-token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ {
2
+ "project" : " @simple-release/pnpm#PnpmProject" ,
3
+ "releaser" : {
4
+ "verbose" : true
5
+ },
6
+ "publish" : {
7
+ "access" : " public"
8
+ }
9
+ }
Original file line number Diff line number Diff line change 56
56
"build:demo" : " node examples/buildDemo > ./docs/demo.html && cp -R examples/demojs/ docs/demojs/" ,
57
57
"build:docs" : " typedoc ./src --out ./docs --excludeExternals && touch docs/.nojekyll" ,
58
58
"commit" : " cz" ,
59
- "bumpVersion" : " standard-version" ,
60
- "createGithubRelease" : " simple-github-release" ,
61
- "release" : " run bumpVersion [ git push origin master --tags ] createGithubRelease" ,
62
- "release:beta" : " run [ bumpVersion --prerelease beta ] [ git push origin master --tags ] [ createGithubRelease --prerelease ]" ,
63
59
"updateGitHooks" : " simple-git-hooks"
64
60
},
65
61
"peerDependencies" : {
95
91
"rollup-plugin-add-shebang" : " ^0.3.1" ,
96
92
"rollup-plugin-swc3" : " ^0.11.0" ,
97
93
"simple-git-hooks" : " ^2.8.1" ,
98
- "simple-github-release" : " ^1.0.0" ,
99
94
"size-limit" : " ^11.0.0" ,
100
- "standard-version" : " ^9.5.0" ,
101
95
"typedoc" : " ^0.25.1" ,
102
96
"typescript" : " ^5.8.3" ,
103
97
"vite" : " ^5.0.4" ,
You can’t perform that action at this time.
0 commit comments