Skip to content

Commit 4d35da8

Browse files
committed
fix: streamline artifact upload and npm publish steps in release workflow
1 parent f0c7bd9 commit 4d35da8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release-please.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
if: ${{ steps.release.outputs.release_created }}
3636
- run: yarn dist
3737
if: ${{ steps.release.outputs.release_created }}
38-
- name: Upload artifacts
39-
uses: actions/upload-artifact@v4
38+
- uses: actions/upload-artifact@v4
4039
if: ${{ steps.release.outputs.release_created }}
4140
with:
4241
name: dist
@@ -56,18 +55,20 @@ jobs:
5655
runs-on: ubuntu-latest
5756
needs: release-github
5857
if: ${{ needs.release-github.outputs.release_created == 'true' }}
58+
permissions:
59+
contents: write
60+
pull-requests: write
61+
id-token: write
5962
env:
6063
YARN_RC_FILENAME: .yarnrc-public.yml
6164
steps:
6265
- uses: actions/checkout@v5
6366
- uses: actions/setup-node@v6
6467
with:
6568
node-version-file: '.tool-versions'
66-
- name: Download dist artifacts
67-
uses: actions/download-artifact@v4
69+
registry-url: 'https://registry.npmjs.org'
70+
- uses: actions/download-artifact@v4
6871
with:
6972
name: dist
7073
- name: Publish to npm
71-
run: |
72-
npm config set registry https://registry.npmjs.org
73-
npm publish --access public
74+
run: npm publish --access public

0 commit comments

Comments
 (0)