Skip to content

🎁 Publish

🎁 Publish #11

Workflow file for this run

name: Publish package to GitHub Packages
on:
workflow_dispatch:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 📦 Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- name: 🛠️ Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: "pnpm"
registry-url: 'https://npm.pkg.github.com'
- name: 🧩 Install dependencies
run: pnpm install --frozen-lockfile --prod=false
- name: 🏗️Run Build
run: pnpm run build
- name: 📦 Publish package
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}