File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release & Publish to NPM
2+ on : workflow_dispatch
3+
4+ jobs :
5+ release :
6+ runs-on : ubuntu-latest
7+ steps :
8+ - name : Checkout
9+ uses : actions/checkout@v4
10+
11+ - name : Setup
12+ uses : ./.github/actions/setup
13+
14+ - name : Initialise the NPM config
15+ run : npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
16+ env :
17+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
18+
19+ - name : Run release
20+ run : npm run release --ci
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -84,3 +84,6 @@ ios/generated
8484android /generated
8585
8686/coverage /
87+
88+ # to not commit NPM token
89+ .npmrc
Original file line number Diff line number Diff line change 99 ]
1010 },
1111 "git" : {
12+ "requireBranch" : " main" ,
1213 "commitMessage" : " chore: release ${version}" ,
1314 "tagName" : " v${version}"
1415 },
You can’t perform that action at this time.
0 commit comments