Skip to content

Publish package to NPM #28

Publish package to NPM

Publish package to NPM #28

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 to NPM
on:
workflow_dispatch: ~
release:
types: [published]
permissions:
id-token: write # Required for OIDC / npm
contents: read
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
- run: corepack enable
- run: yarn install --immutable
- run: yarn run build
# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- run: npm publish --provenance
working-directory: ./packages/devtools