From 8f9badd27f70ece732cde0003d259300d040b7ad Mon Sep 17 00:00:00 2001 From: naorpeled Date: Sat, 7 Feb 2026 19:05:32 +0200 Subject: [PATCH] chore: update publish flow --- .github/workflows/publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1e16464..605130c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,6 +12,10 @@ on: required: true type: string +permissions: + contents: read + id-token: write + jobs: release: runs-on: ubuntu-latest @@ -38,7 +42,7 @@ jobs: - run: npm ci - run: npm version $RELEASE_VERSION --no-git-tag-version - run: npm run build - - name: Publish to npm with retry + - name: Publish to npm run: | max_attempts=5 attempt=1 @@ -59,5 +63,3 @@ jobs: attempt=$((attempt + 1)) fi done - env: - NODE_AUTH_TOKEN: ${{ secrets.BOWSER_NPM_PUBLISH_TOKEN }}