From e77917b48df620df680a8d3b4c99688e500a09ed Mon Sep 17 00:00:00 2001 From: Grigory Date: Thu, 26 Feb 2026 18:48:28 +0500 Subject: [PATCH] Update publish workflow --- .github/workflows/npm-publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 7324c7e6..d863d4b1 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,6 +15,10 @@ on: description: 'Version accepted by `npm version *`' required: true +permissions: + contents: write + id-token: write + jobs: NPM: runs-on: ubuntu-latest @@ -23,7 +27,6 @@ jobs: - uses: actions/setup-node@v6 with: node-version-file: package.json - registry-url: https://registry.npmjs.org - run: npm ci || npm install - uses: fregante/setup-git-user@v2 - name: Create version @@ -31,9 +34,7 @@ jobs: run: | VERSION="$(npm version "${{ github.event.inputs.Version }}")" echo "VERSION=$VERSION" >> $GITHUB_ENV - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - run: npm publish --provenance --access public - run: git push --follow-tags - run: gh release create "$VERSION" --generate-notes env: