Skip to content

Commit 6ed4744

Browse files
committed
Switch to CI publish command bun publish
Doing this instead of using `bun changeset publish` to work around changesets/action#246
1 parent 0e43483 commit 6ed4744

6 files changed

Lines changed: 20 additions & 4 deletions

File tree

‎.changeset/nine-papers-bathe.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@prosemark/paste-rich-text': patch
3+
'@prosemark/render-html': patch
4+
'@prosemark/core': patch
5+
---
6+
7+
Change CI process so that workspace dependencies are correcly resolved during publishing

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ jobs:
3535
- name: Lint
3636
run: bun turbo lint -F "{packages/*}"
3737

38+
- name: Inject NPM Token
39+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
40+
3841
- name: Create Release Pull Request or Publish to npm
3942
id: changesets
4043
uses: changesets/action@v1
4144
with:
42-
publish: bun changeset publish
45+
publish: bun turbo ci:publish -F "{packages/*}"
4346
env:
4447
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4548
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

‎packages/core/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"build": "tsdown",
1919
"preview": "vite preview",
2020
"lint": "eslint --max-warnings=0",
21-
"check-types": "tsc"
21+
"check-types": "tsc",
22+
"ci:publish": "bun publish --tolerate-republish"
2223
},
2324
"dependencies": {
2425
"@lezer/common": "^1.2.3",

‎packages/paste-rich-text/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"dev": "tsdown --watch",
1818
"build": "tsdown",
1919
"lint": "eslint --max-warnings=0",
20-
"check-types": "tsc"
20+
"check-types": "tsc",
21+
"ci:publish": "bun publish --tolerate-republish"
2122
},
2223
"keywords": [],
2324
"author": "",

‎packages/render-html/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"dev": "tsdown --watch",
1818
"build": "tsdown",
1919
"lint": "eslint --max-warnings=0",
20-
"check-types": "tsc"
20+
"check-types": "tsc",
21+
"ci:publish": "bun publish --tolerate-republish"
2122
},
2223
"keywords": [],
2324
"author": "",

‎turbo.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
},
1515
"lint": {
1616
"dependsOn": ["^lint"]
17+
},
18+
"ci:publish": {
19+
"dependsOn": ["^ci:publish"]
1720
}
1821
}
1922
}

0 commit comments

Comments
 (0)