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}}