change config to js
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 3s

This commit is contained in:
2025-12-22 21:47:14 +01:00
parent f835d22269
commit 39c579c077
4 changed files with 1 additions and 75 deletions

View File

@@ -0,0 +1,33 @@
name: Build ESLint Config and Release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get version from package.json
id: pkg
run: |
VERSION=$(node -p "require('./package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
- 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 --force origin ${{ steps.pkg.outputs.version }}
- name: Create release
uses: akkuman/gitea-release-action@v1
with:
name: ${{ steps.pkg.outputs.version }}
tag_name: ${{ steps.pkg.outputs.version }}