Skip to content

Commit

Permalink
ci: fix (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed May 7, 2024
1 parent 24b6e64 commit 148db9e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/nodejs.yml
Expand Up @@ -82,11 +82,21 @@ jobs:
run: git config --global core.autocrlf input

- uses: actions/checkout@v4

- uses: actions/github-script@v7
id: calculate_architecture
with:
result-encoding: string
script: |
if ('${{ matrix.os }}' === 'macos-latest' && ('${{ matrix['node-version'] }}' === '10.x' || '${{ matrix['node-version'] }}' === '12.x' || '${{ matrix['node-version'] }}' === '14.x')) {
return "x64"
} else {
return ''
}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
architecture: ${{ steps.calculate_architecture.outputs.result }}
cache: "npm"

- name: Install dependencies
Expand Down

0 comments on commit 148db9e

Please sign in to comment.