Skip to content

Commit a2cf72e

Browse files
fix publish
1 parent 6909388 commit a2cf72e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ jobs:
5555
- name: Build
5656
run: pnpm build
5757

58-
- name: Update npm to latest
59-
run: npm i -g npm@latest
60-
6158
- name: Resolve publish tag
6259
id: publish-tag
6360
uses: actions/github-script@v8
@@ -85,3 +82,4 @@ jobs:
8582
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8683
NPM_CONFIG_PROVENANCE: true
8784
PUBLISH_TAG: ${{ steps.publish-tag.outputs.result }}
85+
PUBLISH_BRANCH: ${{ github.ref_name }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"build": "turbo run build --filter=\"./packages/*\"",
1818
"build-all": "turbo run build",
1919
"changeset": "changeset",
20-
"ci-publish": "pnpm publish -r --access public --tag $PUBLISH_TAG && changeset tag",
20+
"ci-publish": "pnpm publish -r --access public --tag $PUBLISH_TAG --publish-branch $PUBLISH_BRANCH && changeset tag",
2121
"ci-version": "changeset version && pnpm install --no-frozen-lockfile",
2222
"format": "prettier --write .",
2323
"preinstall": "npx only-allow pnpm",

0 commit comments

Comments
 (0)