fix: setup-node after checkout repo

Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
This commit is contained in:
Vinayak Kulkarni 2022-10-21 17:23:09 +05:30
parent b7820b0428
commit 8e25a6e9b0
No known key found for this signature in database
GPG key ID: 0FE8ABF8260A1552

View file

@ -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