Skip to content

Commit

Permalink
fix: changed npm bin to $(npm root)/.bin in .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed May 17, 2023
1 parent 99dfde8 commit 87a93f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ build:windows:
- ./scripts/choco-install.ps1
- refreshenv
- npm install --ignore-scripts
- $env:Path = "$(npm bin);" + $env:Path
- $env:Path = "$(npm root)\.bin;" + $env:Path
- npm run prebuild --verbose -- --production
- npm test -- --ci --coverage
- npm run bench
Expand Down Expand Up @@ -210,14 +210,14 @@ build:macos:
image: macos-11-xcode-12
variables:
# Produce universal binary
npm_config_arch: 'x64+arm64'
npm_config_arch: "x64+arm64"
RUST_BACKTRACE: "1"
script:
- eval "$(brew shellenv)"
- ./scripts/brew-install.sh
- hash -r
- npm install --ignore-scripts
- export PATH="$(npm bin):$PATH"
- export PATH="$(npm root)/.bin:$PATH"
- npm run prebuild --verbose -- --production
- npm test -- --ci --coverage
- npm run bench
Expand Down

0 comments on commit 87a93f0

Please sign in to comment.