Separate npm publish out into separate job and run with Node 24.5 (#2188)
Some checks are pending
Master Build, Test & Deploy / main (push) Waiting to run

Enables trusted publishing of npm package, which requires Node >= 22.14 and npm >= 11.5.1 (npm 11.5.1 is bundled with node 24.5)
main build cannot currently be done with 24.5 due to minor incompatibilities in the codebase.
This commit is contained in:
GCHQDeveloper581 2026-02-11 09:36:43 +00:00 committed by GitHub
parent 324a23585e
commit 293f304841
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,6 @@ env:
jobs:
main:
permissions:
id-token: write
packages: write
contents: write
runs-on: ubuntu-latest
@ -96,5 +95,20 @@ jobs:
file_glob: true
body: "See the [CHANGELOG](https://github.com/gchq/CyberChef/blob/master/CHANGELOG.md) and [commit messages](https://github.com/gchq/CyberChef/commits/master) for details."
npm-publish:
permissions:
id-token: write
contents: read
needs: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set node version
uses: actions/setup-node@v6
with:
node-version: ^24.5
registry-url: "https://registry.npmjs.org"
- name: Publish to NPM
run: npm publish