From 997b5eb997dcfdccb7cd4c99961e52567d5e8831 Mon Sep 17 00:00:00 2001 From: JeremyRH Date: Fri, 21 Nov 2025 21:45:36 -0800 Subject: [PATCH] fix: streamline artifact upload and npm publish steps in release workflow --- .github/workflows/release-please.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 5083d62f..44908714 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -35,8 +35,7 @@ jobs: if: ${{ steps.release.outputs.release_created }} - run: yarn dist if: ${{ steps.release.outputs.release_created }} - - name: Upload artifacts - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v4 if: ${{ steps.release.outputs.release_created }} with: name: dist @@ -56,6 +55,10 @@ jobs: runs-on: ubuntu-latest needs: release-github if: ${{ needs.release-github.outputs.release_created == 'true' }} + permissions: + contents: write + pull-requests: write + id-token: write env: YARN_RC_FILENAME: .yarnrc-public.yml steps: @@ -63,11 +66,9 @@ jobs: - uses: actions/setup-node@v6 with: node-version-file: '.tool-versions' - - name: Download dist artifacts - uses: actions/download-artifact@v4 + registry-url: 'https://registry.npmjs.org' + - uses: actions/download-artifact@v4 with: name: dist - name: Publish to npm - run: | - npm config set registry https://registry.npmjs.org - npm publish --access public + run: npm publish --access public