-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.23 KB
/
Copy pathrelease.yml
File metadata and controls
57 lines (46 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
push:
branches:
- main
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
name: Automated Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # Required for semantic-release to analyze all commits
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Emacs
uses: purcell/setup-emacs@master
with:
version: '30.1'
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24.10.0"
- name: Install Node.js dependencies
run: npm install
- name: Run tests and quality checks
run: make check-ci
- name: Run semantic-release
run: npm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Optional: Notify on successful release
notify:
name: Notify Release
runs-on: ubuntu-latest
needs: release
if: success()
steps:
- name: Release notification
run: |
echo "🎉 New release created successfully!"
echo "Check the releases page: ${{ github.event.repository.html_url }}/releases"