Skip to content

Publish Package

Publish Package #12

Workflow file for this run

# Automatically publish a package to GitHub Packages and the NPM Registry when a release is created
name: Publish Package
on:
release:
types: [published]
jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: https://npm.pkg.github.com/
scope: '@waktaplay'
- run: pnpm install --frozen-lockfile
- run: echo @waktaplay:registry=https://npm.pkg.github.com >> .npmrc
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}