Separate npm publish out into separate job and run with Node 25 to use trusted publishing

This commit is contained in:
GCHQDeveloper581 2026-02-10 18:58:54 +00:00
parent fe69ec5881
commit 198a252f8a
No known key found for this signature in database
GPG Key ID: 6222E059A3DF595C

View File

@ -96,5 +96,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