2
0
mirror of https://github.com/gchq/CyberChef synced 2026-02-12 22:43:48 +00:00

Fix npm publish - Run "npm ci" and "npm run node" under node 18 then switch to node 24.5 (#2192)

Fixes a problem where some generated files were not included in the npm package as they hadn't been built.
This commit is contained in:
GCHQDeveloper581
2026-02-12 09:39:15 +00:00
committed by GitHub
parent bb41c36578
commit 7ba58cd4ce

View File

@@ -105,6 +105,18 @@ jobs:
- uses: actions/checkout@v6
- name: Set node version
uses: actions/setup-node@v6
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Install
run: npm ci
- name: Create machine generated files
run: npm run node
- name: Reset node version ready for publish
uses: actions/setup-node@v6
with:
node-version: ^24.5