File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -29,30 +29,30 @@ jobs:
2929 node-version : ' lts/*'
3030
3131 - name : Install dependencies
32- run : npm install
32+ run : npm ci
3333
3434 - name : Build scripts and run tests
3535 run : npm run build
3636
37- - name : Bump version and commit
37+ - name : Bump version, commit, and tag
3838 run : |
3939 git config --local user.email "${{ github.actor }}@users.noreply.github.com"
4040 git config --local user.name "Release action on behalf of ${{ github.actor }}"
41- npm --no-git-tag-version version ${{ github.event.inputs.semantic_version }}
42- git commit -m "@releng - prepare release ${{ github.event.inputs.semantic_version }}" -a
4341 npm version ${{ github.event.inputs.semantic_version }} -m '@releng - release %s'
4442
45- - name : Build scripts and run tests again to ensure version bump is picked up
43+ - name : Build again to ensure version bump is picked up
4644 run : npm run build
4745
48- - name : Push changes
46+ - name : Push commit and tags
4947 uses : ad-m/github-push-action@master
5048 with :
5149 github_token : ${{ secrets.GITHUB_TOKEN }}
5250 branch : ${{ github.ref }}
5351 tags : true
5452
55- - name : Publish
53+ - name : Publish to npm
54+ env :
55+ NODE_AUTH_TOKEN : ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
5656 run : |
57- echo "//registry.npmjs.org/:_authToken=${{ secrets.ADOBE_BOT_NPM_TOKEN } }" > ~/.npmrc
57+ echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN }" > ~/.npmrc
5858 npm publish --access public
You can’t perform that action at this time.
0 commit comments