Skip to content

Workflow file for this run

name: Publish package to npmjs.com
on:
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: {}
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- name: publish to npm
run: pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.INCOGNIA_NODE_NPM_TOKEN }}