Skip to content

Publish package

Publish package #3

Workflow file for this run

name: Publish package
on:
release:
types:
- published
jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js 20.17.0
uses: actions/[email protected]
with:
node-version: 20.17.0
registry-url: https://npm.pkg.github.com/
- name: Install dependencies
run: npm ci
- name: Build production
run: npm run release
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}