From 1ca6f5f3b0d46d0b57d0dc85be881862103d9595 Mon Sep 17 00:00:00 2001 From: "hovhannes.babayan" Date: Thu, 16 Jul 2026 18:46:32 +0400 Subject: [PATCH] fix publish workflow --- .github/workflows/npm-publish.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 6eecc4a..76b7041 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -7,6 +7,10 @@ on: release: types: [created] +permissions: + id-token: write # Required for OIDC Trusted Publishing + contents: read + jobs: publish-npm: runs-on: ubuntu-latest @@ -14,9 +18,9 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ - cache: yarn + package-manager-cache: false - name: Update package.json version run: | # Extract version from tag and update package.json @@ -26,6 +30,5 @@ jobs: - run: yarn install --frozen-lockfile - run: yarn build - run: yarn test - - run: yarn publish --access=public - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - run: npm install -g npm@latest + - run: npm publish --access=public \ No newline at end of file