From 70e3539b532439fa6c270476fc75c617779ad828 Mon Sep 17 00:00:00 2001 From: islameldesoky1 Date: Thu, 4 Dec 2025 11:33:25 +0000 Subject: [PATCH 1/2] modify release.yml to include new npm granular access token --- .github/workflows/release.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15f3ecf..1d2d214 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,25 +1,21 @@ name: release - -env: - NODE_JS_VERSION: 20.19.5 - on: release: - types: [ created ] - + types: [created] jobs: release: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write # Required for OIDC steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_JS_VERSION }} registry-url: 'https://registry.npmjs.org' - - - run: yarn install --frozen-lockfile + - run: npm ci - run: yarn prepare - - run: npm ci --legacy-peer-deps - - run: npm publish --access public + - run: npm publish --access public --provenance env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Granular token \ No newline at end of file From 284cb0c4e3be9f3b24b8ccec93b212fae168aa50 Mon Sep 17 00:00:00 2001 From: islameldesoky1 Date: Thu, 4 Dec 2025 11:44:21 +0000 Subject: [PATCH 2/2] modify release.yml to include new npm granular access token --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d2d214..5234f68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,8 @@ name: release on: release: types: [created] +env: + NODE_JS_VERSION: 20.19.5 jobs: release: runs-on: ubuntu-latest