Skip to content

Commit

Permalink
ci: rm win node version
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Oct 17, 2024
1 parent 25437bd commit 0a1eef0
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,14 @@ jobs:
with:
submodules: true

- name: Get minimal Node.js version from package.json (Linux & macOS)
id: node-version-nix
if: runner.os != 'Windows'
- name: Get minimal Node.js version from package.json
id: node-version
run: echo "::set-output name=version::$(node -p 'require("./package.json").engines.node.match(/(\d+)\..*$/)[1]')"

- name: Use Node.js ${{ steps.node-version-nix.outputs.version }} (Linux & macOS)
if: runner.os != 'Windows'
uses: actions/setup-node@v1
- name: Use Node.js ${{ steps.node-version.outputs.version }}
uses: actions/setup-node@v4
with:
node-version: ${{ steps.node-version-nix.outputs.version }}

- name: Get minimal Node.js version from package.json (Windows)
id: node-version-win
if: runner.os == 'Windows'
run: echo "::set-output name=version::$(node -p 'require("./package.json").engines.node.match(/(\d+)\..*$/)[1]')"

- name: Use Node.js ${{ steps.node-version-win.outputs.version }} (Windows)
if: runner.os == 'Windows'
uses: actions/setup-node@v1
with:
node-version: ${{ steps.node-version-win.outputs.version }}
node-version: ${{ steps.node-version.outputs.version }}

- name: Install dependencies
run: npm install --ignore-scripts
Expand Down

0 comments on commit 0a1eef0

Please sign in to comment.