diff --git a/.github/workflows/javascript-bindings.yml b/.github/workflows/javascript-bindings.yml index a0aff9475e..2906c475e9 100644 --- a/.github/workflows/javascript-bindings.yml +++ b/.github/workflows/javascript-bindings.yml @@ -42,7 +42,7 @@ jobs: - uses: actions/setup-node@v6 with: - node-version: 20.x + node-version: '22' - name: Run the tests run: npm test diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index acae20ec88..cc1c26b6c6 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -1,7 +1,10 @@ name: Publish to npmjs.com + on: push: tags: ['v*'] # Triggers when pushing tags starting with 'v' + workflow_dispatch: + jobs: publish: if: github.repository == 'ruby/prism' @@ -25,7 +28,7 @@ jobs: - name: Set up node uses: actions/setup-node@v6 with: - node-version: '20' + node-version: '22' registry-url: 'https://registry.npmjs.org' - name: rake templates