Skip to content

Commit

Permalink
UHF-9380: Testing NVM without retrieving it.
Browse files Browse the repository at this point in the history
  • Loading branch information
khalima committed Jan 25, 2024
1 parent d102a9a commit e41673e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/npm-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Npm audit
on:
schedule:
- cron: '0 12 * * 0' # Run every fortnight on Sunday at 12
workflow_dispatch:
push:
branches:
- UHF-9380

jobs:
npm_audit:
Expand All @@ -11,14 +15,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: UHF-X_npm_broken_branch

- name: Set up Node.js, install dependencies
run: |
node_version=$(cat .nvmrc)
echo "Using Node.js version $node_version"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm install $node_version
nvm use $node_version
npm install --silent
Expand Down

0 comments on commit e41673e

Please sign in to comment.