Skip to content

Commit 7f76bf3

Browse files
committed
updated action workflow
1 parent f0e6404 commit 7f76bf3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
node-version: 16
1818
- run: npm ci
1919
- run: npm test
20+
- run: git config --global user.name "GitHub CD bot"
21+
- run: git config --global user.email "github-cd-bot@example.com"
2022

2123
publish-npm:
2224
needs: build
@@ -32,3 +34,7 @@ jobs:
3234
- run: npm publish
3335
env:
3436
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37+
- run: git push
38+
env:
39+
# The secret is passed automatically. Nothing to configure.
40+
github-token: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)