Skip to content

Workflow file for this run

name: Publish package to GitHub packages
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: pnpm
registry-url: https://npm.pkg.github.com/
scope: "@cielsachen"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish
run: pnpm publish --access restricted --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}