diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index 575a9c81..ede52f0f 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -4,6 +4,10 @@ on: push: branches: [release/*] +permissions: + id-token: write + contents: read + jobs: publish-npm: name: Publish NPM module @@ -13,12 +17,11 @@ jobs: - uses: actions/checkout@v5 - uses: actions/setup-node@v5 with: - node-version: '22.x' + node-version: '24.x' cache: 'npm' cache-dependency-path: javascript/package-lock.json - - run: npm install-test + registry-url: 'https://registry.npmjs.org' + - run: npm install-ci-test + working-directory: javascript + - run: npm publish working-directory: javascript - - uses: cucumber/action-publish-npm@v1.1.1 - with: - npm-token: ${{ secrets.NPM_TOKEN }} - working-directory: javascript