Skip to content

Publish package to GitHub Packages #5

Publish package to GitHub Packages

Publish package to GitHub Packages #5

Workflow file for this run

name: Publish package to GitHub Packages
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .npmrc
uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
scope: '@op6yz'
- name: Install dependencies
run: npm ci
- name: Build package
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}