fix: setup-node after checkout repo
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
This commit is contained in:
parent
b7820b0428
commit
8e25a6e9b0
1 changed files with 5 additions and 5 deletions
10
.github/workflows/ct.yml
vendored
10
.github/workflows/ct.yml
vendored
|
|
@ -12,11 +12,6 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y g++-9
|
sudo apt-get install -y g++-9
|
||||||
|
|
||||||
- name: Setup node env 📦
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version-file: 'package.json'
|
|
||||||
|
|
||||||
- name: Check out repository ✨ (non-dependabot)
|
- name: Check out repository ✨ (non-dependabot)
|
||||||
if: ${{ github.actor != 'dependabot[bot]' }}
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
@ -27,6 +22,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
- name: Setup node env 📦
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version-file: 'package.json'
|
||||||
|
|
||||||
- name: Install dependencies 🚀
|
- name: Install dependencies 🚀
|
||||||
run: npm i --prefer-offline --no-audit --omit=optional
|
run: npm i --prefer-offline --no-audit --omit=optional
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue