Skip to content

Commit

Permalink
Merge pull request #22 from ganta/add-npm-publish-workflow
Browse files Browse the repository at this point in the history
ci: Add a workflow for publishing packages to npmjs
  • Loading branch information
ganta authored Feb 28, 2022
2 parents 48dfd0f + 93d04ba commit b6170ec
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Package

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version-file: .node-version
cache: npm
registry-url: 'https://registry.npmjs.org'

- run: npm ci

- run: npm run build

- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit b6170ec

Please sign in to comment.