Skip to content

Publish npm Package #38

Publish npm Package

Publish npm Package #38

Workflow file for this run

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