-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(root): switch back to official @traf/nx with --includeFiles option…
… for package.json,nx.json,project.json
- Loading branch information
Showing
3 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ jobs: | |
with: | ||
version: 8 | ||
run_install: | | ||
- args: [--global, zx, '@daotl/traf-[email protected].17-2'] | ||
- args: [--global, zx, '@traf/nx@^0.0.21'] | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
|
@@ -61,7 +61,15 @@ jobs: | |
- name: Calculate affected projects | ||
id: affected | ||
run: | | ||
projs=$(traf-nx affected --base=${NX_BASE} --json=true) | ||
# "traf-nx" needs "@daotl/tsconfig" to be present, workaround for "npm install --no-save” error when "package.json"s exist | ||
mv package.json package.json.bk | ||
npm install --no-save @daotl/tsconfig | ||
mv package.json.bk package.json | ||
# Workaround: Error: Could not find ".modules.yaml" at | ||
touch node_modules/.modules.yaml | ||
projs=$(traf-nx affected --base=${NX_BASE} --includeFiles=../package.json,../nx.json,../project.json --json=true) | ||
rm -f node_modules/.modules.yaml | ||
projs=${projs#[} | ||
projs=${projs%]} | ||
projs=$(echo ${projs} | sed -e 's/\"//g') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.