File tree Expand file tree Collapse file tree 2 files changed +21
-5
lines changed
Expand file tree Collapse file tree 2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 55 branches :
66 - master
77
8+ permissions :
9+ contents : write
10+
811jobs :
912 build :
1013 runs-on : ubuntu-latest
1114
1215 steps :
13- - uses : actions/checkout@v1
16+ - uses : actions/checkout@v4
17+ with :
18+ fetch-depth : 0
1419
1520 - name : reattach HEAD
1621 run : |
1722 git checkout "${GITHUB_REF:11}"
1823
1924 - name : Use Node.js
20- uses : actions/setup-node@v1
25+ uses : actions/setup-node@v4
2126 with :
22- node-version : 10.x
27+ node-version : 18.x
28+ registry-url : https://registry.npmjs.org
2329
2430 - name : Install dependencies
2531 run : |
@@ -39,12 +45,22 @@ jobs:
3945 GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
4046 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
4147
48+ - name : Authenticate npm
49+ run : |
50+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
51+ env :
52+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
53+
54+ - name : npm whoami (debug)
55+ run : npm whoami
56+
4257 - name : Publish new version if required
4358 run : |
44- yarn lerna version --conventional-commits --allow-branch=master --no-changelog --sign-git-commit --sign-git-tag --yes
59+ yarn lerna version --conventional-commits --allow-branch=master --no-changelog --sign-git-commit --sign-git-tag --no-push -- yes
4560 yarn release
4661 env :
4762 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
63+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
4864
4965 - name : Push changes
5066 run : |
Original file line number Diff line number Diff line change 11#! /bin/sh
22
33printf " //registry.npmjs.org/:_authToken=" %s" \n@csssr:registry=https://registry.npmjs.org/\n" " $NPM_TOKEN " >> $HOME /.npmrc 2> /dev/null
4- ./node_modules/.bin/lerna publish from-git --yes --registry https://registry.npmjs.org/
4+ ./node_modules/.bin/lerna publish from-git --yes --registry https://registry.npmjs.org/ --no-push
You can’t perform that action at this time.
0 commit comments