Skip to content

Commit

Permalink
fix: [DX-3050] Update syncpack version checking (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidarain1 authored Jul 29, 2024
1 parent 02ae209 commit 551e32d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-lint-typecheck-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.TS_IMMUTABLE_SDK_NX_TOKEN }}

jobs:
syncpack:
name: Syncpack
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: setup
uses: ./.github/actions/pr-setup

- name: Syncpack
run: yarn syncpack:check

typecheck:
name: Typecheck
runs-on: ubuntu-latest-4-cores
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/publish-major-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ jobs:
- name: Lint
run: yarn lint

- name: Check Single Package Version Policy
run: yarn syncpack:check

- name: Get next version string
id: version
run: |
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ jobs:
- name: Lint
run: yarn lint

- name: Check Single Package Version Policy
run: yarn syncpack:check

- name: Get next version string
id: version
run: |
Expand Down
3 changes: 3 additions & 0 deletions .syncpackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"source": ["packages/**/package.json", "sdk/package.json"]
}
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@
},
"type": "module",
"types": "./dist/index.d.ts"
}
}

0 comments on commit 551e32d

Please sign in to comment.