From 3df90666dfbf3723e532fb5dc5bf577066a68435 Mon Sep 17 00:00:00 2001 From: GCHQDeveloper581 <63102987+GCHQDeveloper581@users.noreply.github.com> Date: Wed, 11 Feb 2026 17:39:46 +0000 Subject: [PATCH] Try a multi-version node action --- .github/workflows/test-publish.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/test-publish.yml diff --git a/.github/workflows/test-publish.yml b/.github/workflows/test-publish.yml new file mode 100644 index 00000000..16c5aac9 --- /dev/null +++ b/.github/workflows/test-publish.yml @@ -0,0 +1,38 @@ +name: "Releases" + +on: + workflow_dispatch: + push: + tags: + - "ZZZ*" + +permissions: + contents: read + +jobs: + npm-publish: + permissions: + id-token: write + contents: read + runs-on: ubuntu-latest + steps: + - 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 and configure + run: npm install && npm run node + + - name: Reset node version + uses: actions/setup-node@v6 + with: + node-version: ^24.5 + registry-url: "https://registry.npmjs.org" + + - name: simulate Publish to NPM + run: node --version && npm --version