From b9d9627efed375cab34f4e7bb5f4eefd980ada28 Mon Sep 17 00:00:00 2001 From: ivanauth Date: Fri, 22 May 2026 11:39:21 -0400 Subject: [PATCH] chore: replace npm-publish action with npm publish --- .github/workflows/publish.yaml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 2a43eb3..33fb3f6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -15,6 +15,7 @@ jobs: - uses: "actions/setup-node@v6" with: node-version: "24" + registry-url: "https://registry.npmjs.org" - uses: "pnpm/action-setup@v6" with: cache: true @@ -28,11 +29,10 @@ jobs: # NOTE: the flag is necessary because otherwise `npm version ` attempts to # cut a git tag with that version, which fails because the git user isn't configured. - run: "npm version ${VERSION} --no-git-tag-version" - - uses: JS-DevTools/npm-publish@v4 - with: - token: ${{ secrets.NPM_TOKEN }} - tag: ${{ steps.get_version.outputs.version }} - access: public + - name: Publish to NPM + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # NOTE: this publishes an alternate version that doesn't depend on protobuf-ts/runtime publish-js-client: name: Publish JS client to NPM @@ -42,6 +42,7 @@ jobs: - uses: "actions/setup-node@v6" with: node-version: "24" + registry-url: "https://registry.npmjs.org" - uses: "pnpm/action-setup@v6" with: cache: true @@ -58,10 +59,8 @@ jobs: # cut a git tag with that version, which fails because the git user isn't configured. - run: "npm version ${VERSION} --no-git-tag-version" working-directory: ./js-dist - - uses: JS-DevTools/npm-publish@v4 - with: - token: ${{ secrets.NPM_TOKEN }} - tag: ${{ steps.get_version.outputs.version }} - # Point at the js-dist directory as the working directory - package: js-dist - access: public + - name: Publish JS client to NPM + run: npm publish --access public + working-directory: ./js-dist + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}