File tree Expand file tree Collapse file tree 1 file changed +23
-17
lines changed
Expand file tree Collapse file tree 1 file changed +23
-17
lines changed Original file line number Diff line number Diff line change @@ -2,23 +2,29 @@ name: Release-It
22on : workflow_dispatch
33
44jobs :
5- release :
5+ build :
66 runs-on : ubuntu-latest
77 steps :
8- - name : Checkout source code
9- uses : actions/checkout@v3
10- - name : Install dependencies
11- run : npm ci
12- - name : Init Github User
13- run : |
14- git config --global user.email "claude@designbycode.co.za"
15- git config --global user.name "designbycode"
16- - name : Init NPM config
17- run : npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
18- env :
19- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
20- - name : Run release
21- run : npm run release --ci
8+ - uses : actions/checkout@v3
9+ - uses : actions/setup-node@v3
10+ with :
11+ node-version : 16
12+ - uses : pnpm/action-setup@v2
13+ with :
14+ version : 7
15+ - run : npm ci
16+ - run : pnpm test
17+
18+ publish-npm :
19+ needs : build
20+ runs-on : ubuntu-latest
21+ steps :
22+ - uses : actions/checkout@v3
23+ - uses : actions/setup-node@v3
24+ with :
25+ node-version : 16
26+ registry-url : https://registry.npmjs.org/
27+ - run : npm ci
28+ - run : npm publish
2229 env :
23- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
30+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments