Skip to content

Commit e4756c2

Browse files
committed
Use dedicated step to publish to NPM
1 parent 79ad7bc commit e4756c2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,17 @@ jobs:
3636
run: bun install --frozen-lockfile
3737
env:
3838
PUPPETEER_SKIP_DOWNLOAD: 1
39-
- name: Create Release Pull Request or Publish to npm
39+
- name: Create Release Pull Request
4040
id: changesets
4141
uses: changesets/action@v1
4242
with:
43-
publish: bun run publish-all-packages
4443
version: bun run changeset-version
4544
env:
4645
# Using a PAT instead of GITHUB_TOKEN because we need to run workflows when releases are created
4746
# https://github.com/orgs/community/discussions/26875#discussioncomment-3253761
4847
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}
4948

49+
# We use a dedicated step to publish to npm because it needs the top level GITHUB_TOKEN and not the GH_PERSONAL_TOKEN one
50+
- name: Publish to NPM
51+
if: steps.changesets.outputs.hasChangesets == 'false'
52+
run: bun run publish-all-packages

0 commit comments

Comments
 (0)