mirror of
https://github.com/gchq/CyberChef.git
synced 2026-02-20 00:32:11 +01: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:
12
.github/workflows/releases.yml
vendored
12
.github/workflows/releases.yml
vendored
@@ -105,6 +105,18 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Set node version
|
- 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
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: ^24.5
|
node-version: ^24.5
|
||||||
|
|||||||
Reference in New Issue
Block a user