From e7e1e3df4ff3aaed671c16bb17125bc2b3dd1cf0 Mon Sep 17 00:00:00 2001 From: Vitaly Gashkov Date: Sun, 8 Feb 2026 14:12:59 +0500 Subject: [PATCH] fix: install new npm to support trusted publishers --- .github/workflows/publish.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 36712f5..4bdd9d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,9 +19,10 @@ jobs: with: node-version: 22 registry-url: https://registry.npmjs.org/ + - run: npm install -g npm@latest - run: npm ci + - run: npm run build --if-present - # Extract version from package.json and determine release channel - name: Parse version and determine release channel id: version run: | @@ -38,12 +39,10 @@ jobs: echo "NPM_TAG=latest" >> $GITHUB_OUTPUT fi - # Publish with the appropriate tag - - name: Publish to npm + - name: Publish new version run: npm publish --tag ${{ steps.version.outputs.NPM_TAG }} - # Only create GitHub releases for stable versions - - name: Create GitHub Release + - name: Create release uses: softprops/action-gh-release@v2 with: generate_release_notes: true