-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not pin Node version in
package.json
(#106)
* build(npm): update to v10.1.0 * build(dependabot): batch updates * ci: use latest Node version * chore: revert some changes * fix: do not pin node version * chore: revert batch update * build(node): allow LTS * fix(ci): checkout repo before parsing Node version * fix(ci: remove duplicate setup node step * fix(ci): get Node version from manifest
- Loading branch information
1 parent
7998478
commit 8f6ac34
Showing
3 changed files
with
8 additions
and
7 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
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 |
---|---|---|
|
@@ -8,11 +8,12 @@ jobs: | |
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Get Node version from Node manifest | ||
run: | | ||
echo "NODE_VER=$(jq -r '.engines.node' package.json | sed 's/v//' )" >> $GITHUB_ENV | ||
- uses: actions/[email protected] | ||
run: echo "NODE_VER=$(curl -s https://nwjs.io/versions | jq -r ".versions[0].components.node")" >> $GITHUB_ENV | ||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODE_VER }} | ||
cache: "npm" | ||
|
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