Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit cea1942

Browse files
committed
Merge branch 'main' of github.com:Cookie-cms/frontend
2 parents d6a23cb + 5dfbf3e commit cea1942

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/auto-release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Auto Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- name: Get version from package.json
22+
id: get_version
23+
run: |
24+
VERSION=$(node -p "require('./package.json').version")
25+
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
26+
27+
- name: Create Git Tag
28+
run: |
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
31+
git tag v${{ steps.get_version.outputs.VERSION }}
32+
git push origin v${{ steps.get_version.outputs.VERSION }}
33+
34+
- name: Create GitHub Release
35+
uses: softprops/action-gh-release@v2
36+
with:
37+
tag_name: v${{ steps.get_version.outputs.VERSION }}
38+
generate_release_notes: true
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)