From 15eb6aa8149b0e6bd31ce4d3570a1b74e5746cbf Mon Sep 17 00:00:00 2001 From: JasterV <49537445+JasterV@users.noreply.github.com> Date: Sun, 1 Mar 2026 18:39:15 +0100 Subject: [PATCH] update CI --- .github/workflows/npm-publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 32939e5..33c69be 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -4,6 +4,10 @@ on: release: types: [created] +permissions: + id-token: write # Required for OIDC + contents: read + jobs: release: runs-on: ubuntu-latest @@ -22,8 +26,6 @@ jobs: run: bun test - name: Publish to NPM - # --access public is required for scoped packages (@your-org/pkg) - # --tolerate-republish prevents CI failure if the version already exists - run: bun publish --access public --tolerate-republish + run: bun publish --access public env: NPM_CONFIG_TOKEN: ${{ secrets.npm_token }}