add workflow

This commit is contained in:
2025-12-17 17:58:51 +01:00
parent 3a9d9e7011
commit aa9487b2eb

View File

@@ -0,0 +1,41 @@
name: Build ESLint Config on Tag
on:
push:
tags:
- 'v*' # triggers on tags like v1.0.0, v2.3.1, etc.
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