File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release & Publish
2+ on : workflow_dispatch
3+ jobs :
4+ release :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - name : Checkout source code
8+ uses : actions/checkout@v4
9+ with :
10+ fetch-depth : 0
11+
12+ - name : Install dependencies
13+ run : yarn install --frozen-lockfile
14+
15+ - name : Set Git user
16+ run : |
17+ git config --global user.email "[email protected] " 18+ git config --global user.name "GitHub Release Workflow"
19+
20+ - name : Create NPM config
21+ run : |
22+ npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
23+ env :
24+ NPM_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
25+
26+ - name : Run release
27+ run : npm run release --ci
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ NPM_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
You can’t perform that action at this time.
0 commit comments