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