Skip to content

NPM package

NPM package #1

Workflow file for this run

name: NPM package
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run deploy
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
push:
runs-on: ubuntu-latest
steps:
- run: git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}