Skip to content

Publish Package to npm #12

Publish Package to npm

Publish Package to npm #12

Workflow file for this run

name: Publish Package to npm
on:
release:
types:
- published
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.11.0'
registry-url: 'https://registry.npmjs.org'
- run: npm -g i pnpm && pnpm i
- run: pnpm run all
- run: cd build && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}