-
-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replaces nvm with volta (#100)
- Loading branch information
Showing
11 changed files
with
37 additions
and
24 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 |
---|---|---|
|
@@ -10,6 +10,7 @@ env: | |
NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT: 3 | ||
NX_BRANCH: ${{ github.event.number || github.ref_name }} | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
VOLTA_FEATURE_PNPM: 1 | ||
|
||
jobs: | ||
main: | ||
|
@@ -29,20 +30,13 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Derive appropriate SHAs for base and head for `nx affected` commands | ||
- name: Derive SHAs for `nx affected` commands | ||
uses: nrwl/nx-set-shas@v3 | ||
with: | ||
main-branch-name: 'main' | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8.6.1 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
- name: Setup volta | ||
uses: volta-cli/action@v4 | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
@@ -57,7 +51,6 @@ jobs: | |
run: | | ||
pids=() | ||
# list of commands to be run on main has env flag NX_CLOUD_DISTRIBUTED_EXECUTION set to false | ||
NX_CLOUD_DISTRIBUTED_EXECUTION=false pnpm nx-cloud record -- pnpm nx format:check & pids+=($!) | ||
pnpm nx affected -t lint --parallel=3 & pids+=($!) | ||
|
@@ -97,15 +90,8 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 8.6.1 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
- name: Setup volta | ||
uses: volta-cli/action@v4 | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
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
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 |
---|---|---|
|
@@ -46,10 +46,14 @@ | |
"prettier-plugin-tailwindcss": "^0.3.0", | ||
"typescript": "^5.1.3" | ||
}, | ||
"packageManager": "[email protected].1", | ||
"packageManager": "[email protected].2", | ||
"engines": { | ||
"node": ">=18.16.0", | ||
"pnpm": ">=8.6.1" | ||
"pnpm": ">=8.6.2" | ||
}, | ||
"volta": { | ||
"node": "18.16.0", | ||
"pnpm": "8.6.2" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
|
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
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 |
---|---|---|
|
@@ -36,5 +36,8 @@ | |
}, | ||
"devDependencies": { | ||
"@noodle/tsconfig": "workspace:^" | ||
}, | ||
"volta": { | ||
"extends": "../../../package.json" | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -9,5 +9,8 @@ | |
"./base.json", | ||
"./nextjs.json", | ||
"./react.json" | ||
] | ||
], | ||
"volta": { | ||
"extends": "../../../package.json" | ||
} | ||
} |
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
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
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