Skip to content

Commit

Permalink
Workflow to deploy package to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
SamKirkland authored Aug 23, 2020
1 parent 246d605 commit 181e3f5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to NPM

on:
release:
branches: [ master ]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test
- run: npm pack
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 181e3f5

Please sign in to comment.