Skip to content

Commit

Permalink
build: workflow to publish npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
rprieto committed Mar 21, 2023
1 parent df6e25e commit 1e02d2b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish NPM package

# This workflow runs every time a version tag is pushed
on:
push:
tags:
- 'v*'

jobs:

# Publish the npm package
publish:
name: Publish package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm publish --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 1e02d2b

Please sign in to comment.