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 11name : Release
22on :
3- release :
4- types : [created]
3+ issue_comment :
4+ types : [created, deleted]
5+ push :
6+ branches :
7+ - master
58jobs :
6- build :
9+ check :
710 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'
942 steps :
1043 - name : Checkout the repository
1144 uses : actions/checkout@v4
2154 registry-url : ' https://registry.npmjs.org'
2255 - name : Install dependencies
2356 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 5656 "build:demo" : " node examples/buildDemo > ./docs/demo.html && cp -R examples/demojs/ docs/demojs/" ,
5757 "build:docs" : " typedoc ./src --out ./docs --excludeExternals && touch docs/.nojekyll" ,
5858 "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 ]" ,
6359 "updateGitHooks" : " simple-git-hooks"
6460 },
6561 "peerDependencies" : {
9591 "rollup-plugin-add-shebang" : " ^0.3.1" ,
9692 "rollup-plugin-swc3" : " ^0.11.0" ,
9793 "simple-git-hooks" : " ^2.8.1" ,
98- "simple-github-release" : " ^1.0.0" ,
9994 "size-limit" : " ^11.0.0" ,
100- "standard-version" : " ^9.5.0" ,
10195 "typedoc" : " ^0.25.1" ,
10296 "typescript" : " ^5.8.3" ,
10397 "vite" : " ^5.0.4" ,
You can’t perform that action at this time.
0 commit comments