From 911737db712a1e7c5720204af01242e766273567 Mon Sep 17 00:00:00 2001 From: Grace Park Date: Tue, 22 Oct 2024 22:19:54 +0000 Subject: [PATCH] upgrade node to 22 and add provenance --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 224fecb..0a1c3f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 19 + node-version: 22 - run: npm install - run: npm test diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 194742b..5709ce0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,7 @@ name: Publish permissions: contents: read pull-requests: write + id-token: write on: release: types: [created] @@ -13,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: https://registry.npmjs.org/ cache: npm - run: npm ci @@ -23,6 +24,6 @@ jobs: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{github.event.release.tag_name}} - - run: npm whoami; npm --ignore-scripts publish + - run: npm whoami; npm --ignore-scripts publish --provenance env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}