Skip to content

Commit

Permalink
Create npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv authored May 19, 2021
1 parent ae7aa05 commit a1270de
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: npm i
- run: npm test
- run: npm version ${{ github.event.release.tag_name }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- run: |
git config user.name github-actions
git config user.email [email protected]
- run: git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a1270de

Please sign in to comment.