change config to js
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 3s
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 3s
This commit is contained in:
33
.gitea/workflows/build-on-push.yml
Normal file
33
.gitea/workflows/build-on-push.yml
Normal 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 }}
|
||||
Reference in New Issue
Block a user