Skip to content

Commit

Permalink
ci: Publish new version to npm when tagged (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink authored May 3, 2021
1 parent 4469bd4 commit 52e3bb3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14,668 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Publish Version to NPM'

on:
push:
tags:
- 'v*.*.*'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- id: version
uses: battila7/get-version-action@v2
- run: npm --no-git-tag-version version ${{ steps.version.outputs.version }}
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/lib
/node_modules
npm-debug.log*
npm-debug.log*
/package-lock.json
Loading

0 comments on commit 52e3bb3

Please sign in to comment.