Skip to content

Commit

Permalink
feat: Add npm release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal Nagar committed Nov 7, 2020
1 parent 6c75d45 commit 23f70c8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release to npm

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '14'
- name: Install npm dependencies
run: npm install
- name: Create build
run: npm run build
- name: Authenticate with the npm registry
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Release to npm
run: npm publish

0 comments on commit 23f70c8

Please sign in to comment.