Skip to content

Workflow file for this run

# This workflow will publish a package to npm when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Publish package to npm public registry
on:
release:
types: [ published ]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Check-out the repository
uses: actions/checkout@v2
- name: Setup node version 16.13.0 (LTS)
uses: actions/setup-node@v2
with:
node-version: '16.13.0'
registry-url: 'https://registry.npmjs.org'
- name: Install production dependencies
run: npm ci --production
- name: Publish package to npm
run: npm publish --ignore-scripts --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GUIDESMITHS }}