Skip to content

Node.js Package

Node.js Package #10

Workflow file for this run

name: Node.js Package
on:
release:
types: [created]
jobs:
build:
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
token: ${{ secrets.NPM_TOKEN }}
- run: npm install -g pnpm
- run: pnpm install
- run: pnpm build
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}