Skip to content

Commit 2f8fa46

Browse files
committed
fix: publish workflow
1 parent 3571f1c commit 2f8fa46

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/publish-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,20 @@ jobs:
2828
with:
2929
version: 9
3030

31+
- name: Setup npmrc
32+
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
33+
3134
- name: Install Dependencies
3235
run: pnpm install
3336

3437
- name: Build
3538
run: pnpm run build:lib
3639

37-
- name: Create Release
40+
- name: Publish and Create Release
3841
id: create-release
3942
uses: changesets/action@v1
4043
with:
41-
publish: pnpm changeset publish
44+
publish: pnpm ci:publish
4245
createGithubReleases: true
4346
env:
4447
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"watch:apps": "pnpm --filter \"./apps/**\" run dev",
1414
"build:lib": "pnpm --filter \"./packages/**\" run build",
1515
"build:app": "pnpm --filter \"./apps/**\" run build",
16+
"ci:publish": "pnpm publish -r",
1617
"lint": "eslint .",
1718
"prepare": "husky"
1819
},

0 commit comments

Comments
 (0)