Skip to content

Publish Node.js Package #6

Publish Node.js Package

Publish Node.js Package #6

Workflow file for this run

name: Publish Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: pnpm/action-setup@v4
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
run_install: true
- run: pnpm build
- run: pnpm test
publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://npm.pkg.github.com/
- uses: pnpm/action-setup@v4
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
run_install: true
- run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}