Skip to content

Commit 5291b3b

Browse files
authored
fix(ci): resolve workspace refs during changeset publish (#204)
1 parent bb8d401 commit 5291b3b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ jobs:
2424
with:
2525
restore-turbo-cache: 'false' # in release workflow, build from scratch
2626

27+
28+
- name: Build
29+
run: yarn build
30+
2731
- name: Create Release Pull Request or Publish to NPM
2832
uses: changesets/action@e9cc34b540dd3ad1b030c57fd97269e8f6ad905a # v1.4.9
2933
with:
30-
version: yarn version-packages
31-
publish: yarn publish-packages
34+
version: yarn ci:version
35+
publish: yarn ci:publish
3236
commit: 'chore(release): version packages'
3337
title: 'chore(release): version packages'
3438
env:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"build": "turbo run build",
1414
"dev": "yarn workspaces foreach -Api run dev",
1515
"release": "release-it --config packages/react-native-brownfield/.release-it.json",
16-
"version-packages": "changeset version && yarn install --no-immutable",
17-
"publish-packages": "turbo run build lint && changeset version && changeset publish",
16+
"ci:version": "changeset version && yarn install --no-immutable",
17+
"ci:publish": "yarn workspaces foreach -At yarn npm publish && changeset tag",
1818
"brownfield:plugin:publish:local": "bash ./gradle-plugins/publish-to-maven-local.sh",
1919
"build:brownfield": "turbo run build:brownfield",
2020
"build:docs": "turbo run build:docs",

0 commit comments

Comments
 (0)