Skip to content

Commit

Permalink
GitHub Action for publishing NPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Nov 2, 2023
1 parent 717b814 commit 262dd24
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-npm-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Publish npm package
# see https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Publish NPM Package

on:
# runs when creating a version tag
push:
tags:
- v[0-9].*

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
# TODO: enable unit tests
# - run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit 262dd24

Please sign in to comment.