Skip to content

Commit

Permalink
chore: build @changeset/assemble-release-plan before execute pnpm cha…
Browse files Browse the repository at this point in the history
…ngeset version (#3191)
  • Loading branch information
2heal1 authored Nov 7, 2024
1 parent 66ba7b1 commit 8cf044e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/release-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@ jobs:
node-version: '18'
cache: 'pnpm'

- name: Set Nx SHA
uses: nrwl/nx-set-shas@v3

- name: Install Dependencies
run: pnpm install --ignore-scripts
# assemble-release-plan is forked, so need to build it before execute pnpm changeset version
- name: Build Internal Changesets Dependencies
run: npx nx build assemble-release-plan

- name: Create Release Pull Request
uses: module-federation/actions@v2
Expand Down
2 changes: 1 addition & 1 deletion packages/assemble-release-plan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"./package.json": "./package.json"
},
"scripts": {
"test": "jest",
"test": "echo 'skip'",
"build": "preconstruct build",
"watch": "preconstruct watch",
"postinstall": "preconstruct dev",
Expand Down
15 changes: 15 additions & 0 deletions packages/assemble-release-plan/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "assemble-release-plan",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/assemble-release-plan/src",
"projectType": "library",
"tags": ["type:pkg"],
"targets": {
"build": {
"executor": "nx:run-commands",
"options": {
"commands": ["npm run build --prefix packages/assemble-release-plan"]
}
}
}
}

0 comments on commit 8cf044e

Please sign in to comment.