File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed
Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1919 node-version : 16
2020 - run : npm ci
2121
22- update-version :
22+ update-version-and-publish :
2323 needs : build
2424 runs-on : ubuntu-latest
2525 steps :
2828 run : |
2929 TAG_NAME=$(echo ${{github.ref_name}})
3030 jq --arg tag "$TAG_NAME" '.version = $tag' package.json > tmp.$$.json && mv tmp.$$.json package.json
31-
3231 - name : Commit and push changes
3332 run : |
3433 TAG_NAME=$(echo ${{github.ref_name}})
@@ -40,18 +39,12 @@ jobs:
4039 git push --force origin $TAG_NAME
4140 env :
4241 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43-
44- publish-npm :
45- needs : update-version
46- runs-on : ubuntu-latest
47- if : startsWith(github.ref, 'refs/tags/')
48- steps :
49- - uses : actions/checkout@v4
5042 - uses : actions/setup-node@v3
5143 with :
5244 node-version : 16
5345 registry-url : https://registry.npmjs.org/
5446 - run : npm ci
5547 - run : npm publish
5648 env :
57- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
49+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
50+
You can’t perform that action at this time.
0 commit comments