fix: update deploy workflow to install Node.js requirements before checkout
This commit is contained in:
@@ -13,15 +13,17 @@ jobs:
|
|||||||
runs-on: host
|
runs-on: host
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Install Node.js requirements for Actions
|
||||||
run: |
|
run: |
|
||||||
if [ -d ".git" ]; then
|
if ! command -v node &> /dev/null; then
|
||||||
git fetch --depth=2
|
apk add --no-cache nodejs npm
|
||||||
git reset --hard FETCH_HEAD
|
|
||||||
else
|
|
||||||
git clone --depth=2 https://git.novaprojects.dev/unkn0wn/nova-design-system.git .
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.version_check.outputs.changed == 'true'
|
if: steps.version_check.outputs.changed == 'true'
|
||||||
run: npm ci --legacy-peer-deps
|
run: npm ci --legacy-peer-deps
|
||||||
|
|||||||
Reference in New Issue
Block a user