Skip to content

Commit

Permalink
chore: specify Node.js and yarn versions (angular#880)
Browse files Browse the repository at this point in the history
* chore: specify Node.js and yarn versions

* chore: use package.json from setup-node
  • Loading branch information
lacolaco authored Aug 16, 2023
1 parent 1c9aabd commit 595a9ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
submodules: true
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
node-version-file: 'package.json'
cache: yarn
- run: yarn install
- run: yarn test
Expand All @@ -29,7 +29,7 @@ jobs:
submodules: true
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
node-version-file: 'package.json'
cache: yarn
- run: yarn install
- run: yarn build
Expand All @@ -54,7 +54,7 @@ jobs:
submodules: true
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
node-version-file: 'package.json'
cache: yarn
- run: yarn install
- run: yarn build
2 changes: 1 addition & 1 deletion .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .node-version
node-version-file: 'package.json'
cache: yarn
- name: Install
run: yarn install
Expand Down
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"test:patch": "git apply -v --check --directory origin ./tools/git-patch/*.patch",
"update-origin": "zx tools/update-origin.mjs"
},
"packageManager": "yarn@1.22.10",
"engines": {
"node": "^18.16.0"
},
"devDependencies": {
"chokidar": "3.5.3",
"prh-rules": "prh/rules",
Expand Down

0 comments on commit 595a9ff

Please sign in to comment.