Skip to content

Publish on NPM

Publish on NPM #9

Workflow file for this run

name: Publish on NPM
on:
workflow_dispatch:
jobs:
publish-to-npm:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: .nvmrc
cache: yarn
- run: yarn install --immutable
- run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
yarn run publish --y