1
0
mirror of https://github.com/lancedikson/bowser synced 2026-02-10 01:50:10 +00:00

chore: update publish flow

This commit is contained in:
naorpeled 2026-02-07 19:05:32 +02:00
parent 5032e0ee71
commit 8f9badd27f

View File

@ -12,6 +12,10 @@ on:
required: true required: true
type: string type: string
permissions:
contents: read
id-token: write
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -38,7 +42,7 @@ jobs:
- run: npm ci - run: npm ci
- run: npm version $RELEASE_VERSION --no-git-tag-version - run: npm version $RELEASE_VERSION --no-git-tag-version
- run: npm run build - run: npm run build
- name: Publish to npm with retry - name: Publish to npm
run: | run: |
max_attempts=5 max_attempts=5
attempt=1 attempt=1
@ -59,5 +63,3 @@ jobs:
attempt=$((attempt + 1)) attempt=$((attempt + 1))
fi fi
done done
env:
NODE_AUTH_TOKEN: ${{ secrets.BOWSER_NPM_PUBLISH_TOKEN }}