Skip to content

Publish npm Package #25

Publish npm Package

Publish npm Package #25

Workflow file for this run

name: Publish npm Package
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
package_json_file: package.json
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: 📦️ Install dependencies
run: pnpm install --no-frozen-lockfile
- name: 🏗️ Build
run: |
pnpm build
- name: 🚀️ Publish to NPM
run: pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}