Some checks failed
Build ESLint Config on Tag / build (push) Failing after 55s
42 lines
877 B
YAML
42 lines
877 B
YAML
name: Build ESLint Config on Tag
|
||
|
||
on:
|
||
push:
|
||
tags:
|
||
- '[0-9]+.[0-9]+.[0-9]+'
|
||
|
||
jobs:
|
||
build:
|
||
runs-on: ubuntu-latest
|
||
|
||
steps:
|
||
- name: Checkout code
|
||
uses: actions/checkout@v4
|
||
|
||
- name: Setup Node.js
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version: 20
|
||
cache: npm
|
||
|
||
- name: Install dependencies
|
||
run: npm ci
|
||
|
||
- name: Build
|
||
run: npm run build
|
||
|
||
- name: Verify dist
|
||
run: |
|
||
if [ ! -d "dist" ]; then
|
||
echo "Build failed: dist/ directory not found"
|
||
exit 1
|
||
fi
|
||
|
||
# 6️⃣ Optional: Archive dist as artifact
|
||
# Uncomment if you want to attach build output to the workflow run
|
||
# - name: Archive build
|
||
# uses: actions/upload-artifact@v3
|
||
# with:
|
||
# name: eslint-config-dist
|
||
# path: dist
|