Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish to NPM

on:
release:
types: [published]

jobs:
publish-to-npm:
runs-on: ubuntu-24.04
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .node-version
registry-url: https://registry.npmjs.org/
- name: Upgrade npm for Trusted Publishing
run: npm i -g npm@latest
- run: yarn --strict-semver --frozen-lockfile
- run: yarn build
- name: Publish to npmjs.com
run: npm publish --access public --provenance
1 change: 1 addition & 0 deletions changelog.d/120.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update CI to use NPM Trusted Publishing.
Loading