Skip to content

Publish the Package #25

Publish the Package

Publish the Package #25

Workflow file for this run

name: Publish the Package
on:
push:
tags:
- v*
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Publishing to NPMJS
uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish on NPM
run: npm publish
- name: Setup Publishing to Github Packages
uses: actions/setup-node@v6
with:
node-version: '24.x'
registry-url: 'https://npm.pkg.github.com'
- name: Publish on Github
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.REPO_TOKEN }}