diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 58e2e37..518e55c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -22,6 +22,9 @@ jobs: registry-url: https://registry.npmjs.org cache: "pnpm" + - name: Update npm 📦 + run: npm install -g npm@11.11.0 + - name: Install 📦 run: pnpm install @@ -29,33 +32,12 @@ jobs: run: pnpm build - name: Publish 🚀 PRERELEASE - if: "github.event.release.prerelease" - run: | - npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN - pnpm -r publish --tag next --no-git-checks --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + if: 'github.event.release.prerelease' + run: pnpm -r publish --tag next --no-git-checks --access public - name: Publish 🚀 PRODUCTION - if: "!github.event.release.prerelease" - run: | - npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN - pnpm -r publish --no-git-checks --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Trigger deploy to gh-pages 🚀 - # if: '!github.event.release.prerelease' - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.COMMERCELAYER_CI_TOKEN }} - script: | - await github.rest.actions.createWorkflowDispatch({ - owner: context.repo.owner, - repo: context.repo.repo, - ref: context.ref, - workflow_id: 'gh-pages.yaml' - }); + if: '!github.event.release.prerelease' + run: pnpm -r publish --no-git-checks --access public - name: Post to a Slack channel id: slack diff --git a/package.json b/package.json index 606868d..9b9843f 100644 --- a/package.json +++ b/package.json @@ -21,5 +21,6 @@ }, "engines": { "node": ">=24.20.0" - } + }, + "packageManager": "pnpm@11.9.0" }