Skip to content

Commit 79ad7bc

Browse files
authored
Fix publishing to NPM (#3809)
1 parent 5b0917a commit 79ad7bc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ jobs:
4040
id: changesets
4141
uses: changesets/action@v1
4242
with:
43-
publish: npm run publish-all-packages
44-
version: npm run changeset-version
43+
publish: bun run publish-all-packages
44+
version: bun run changeset-version
4545
env:
4646
# Using a PAT instead of GITHUB_TOKEN because we need to run workflows when releases are created
4747
# https://github.com/orgs/community/discussions/26875#discussioncomment-3253761
4848
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_TOKEN }}
49+

turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
// Publish the package to npm
5757
"publish-to-npm": {
5858
"dependsOn": ["build"],
59-
"cache": false
59+
"cache": false,
60+
"env": ["NODE_AUTH_TOKEN", "NPM_CONFIG_USERCONFIG"]
6061
},
6162
// Clean up the package
6263
"clean": {

0 commit comments

Comments
 (0)