Skip to content

Commit d2d7205

Browse files
authored
Update npm-publish.yml
1 parent bee6621 commit d2d7205

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node: [14]
17+
node: [16]
1818
os: [ubuntu-latest]
1919

2020
steps:
@@ -34,9 +34,15 @@ jobs:
3434
- uses: actions/checkout@v2
3535
- uses: actions/setup-node@v2
3636
with:
37-
node-version: 14
37+
node-version: 16
3838
registry-url: https://registry.npmjs.org/
3939
- run: npm ci
40+
- run: git config --global user.name "Sven"
41+
- run: git config --global user.email "mailsvb@gmail.com"
42+
- run: npm version ${{ github.event.release.tag_name }}
4043
- run: npm publish
4144
env:
42-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
45+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
46+
- run: git push
47+
env:
48+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)