Skip to content

Node.js Package

Node.js Package #38

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
release:
types: [created]
push:
tags:
- "v*"
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/npm-ci
with:
cache-dependency-path: package-lock.json
working-directory: .
# registry-url: https://npm.pkg.github.com/
- run: npm publish
working-directory: .
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}