File tree Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Expand file tree Collapse file tree 1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -37,36 +37,30 @@ jobs:
3737 with :
3838 node-version : ' 20.x'
3939
40- - name : Install dependencies
40+ - name : Install dependencies and build
4141 env :
4242 GSAP_TOKEN : ${{ secrets.GSAP_TOKEN }}
4343 run : |
4444 npm config set //npm.greensock.com/:_authToken=$GSAP_TOKEN
4545 npm config set @gsap:registry=https://npm.greensock.com
4646 npm ci
47-
48- - name : Install dependencies
49- run : |
5047 npm run build
5148
5249 - name : Setup Git
5350 run : |
5451 git config user.name github-actions
5552 git config user.email [email protected] 5653
57- - name : Bump Version
54+ - name : Bump version
5855 run : |
59- npm version ${{ github.event.inputs.version }} --no-git-tag-version --preid ${{ github.event.inputs.prereleaseid }}
60- git add .
61- git commit -m "v$(npm pkg get version | tr -d '"')"
62- git tag $(npm pkg get version | tr -d '"') -m "v$(npm pkg get version | tr -d '"')"
56+ npm version ${{ github.event.inputs.version }} --preid ${{ github.event.inputs.prereleaseid }}
6357
64- - name : Publish to NPM
65- uses : JS-DevTools/npm-publish@v3
66- with :
67- token : ${{ secrets.NPM_TOKEN }}
68- provenance : true
69- ignore-scripts : false
58+ - name : Publish
59+ run : |
60+ npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
61+ npm publish --provenance --access public
62+ env :
63+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
7064
7165 - name : Push latest version
7266 run : git push origin main --follow-tags
You can’t perform that action at this time.
0 commit comments