update workflow
Some checks failed
Build ESLint Config on Tag / build (push) Failing after 8s

This commit is contained in:
2025-12-21 18:34:27 +01:00
parent 1fa088cb1c
commit 50df678fc4

View File

@@ -2,8 +2,8 @@ name: Build ESLint Config on Tag
on: on:
push: push:
tags: branches:
- '[0-9]+.[0-9]+.[0-9]+' - main
jobs: jobs:
build: build:
@@ -24,14 +24,22 @@ jobs:
- name: Build - name: Build
run: bun run build run: bun run build
- name: Verify dist - name: Get version from package.json
id: pkg
run: | run: |
if [ ! -d "dist" ]; then version=$(bun run -c 'console.log(require("./package.json").version)')
echo "Build failed: dist/ directory not found" echo "version=$version" >> $GITHUB_OUTPUT
exit 1
fi
- name: Create release - name: Create git tag
run: |
git config user.name "gitea-actions[bot]"
git config user.email "gitea-actions[bot]@users.noreply.gitea.com"
git tag ${{ steps.pkg.outputs.version }}
git push origin ${{ steps.pkg.outputs.version }}
- name: Create GitHub release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
files: dist/index.js tag_name: ${{ steps.pkg.outputs.version }}
files: |
dist/index.js