Skip to content

Publish package to GitHub Packages #4

Publish package to GitHub Packages

Publish package to GitHub Packages #4

Workflow file for this run

name: Publish package to GitHub Packages
on:
release:
types: [published]
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12.x', '16.x', '22.x']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com'
scope: '@olivierzal'
- run: npm ci --force
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}