Skip to content

1.0.268

1.0.268 #189

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish Package
on:
push:
tags:
- 'v*.*.*'
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
# Build using the Node version required by the product.
- name: Set up Node 18 for build
uses: actions/setup-node@v6
with:
node-version: '18'
package-manager-cache: false
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
# Switch only for trusted publishing.
- name: Set up Node 24 for publishing
uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false
- name: Publish package
run: npm publish --access public