-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (38 loc) · 1.03 KB
/
release.yml
File metadata and controls
48 lines (38 loc) · 1.03 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
name: Monthly Release
on:
# Release automatique le 1er de chaque mois à 9h00 UTC
schedule:
- cron: '0 9 1 * *'
# Permet aussi de déclencher manuellement depuis GitHub Actions UI
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
name: Semantic Release
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: UV_USE_IO_URING=0 npm run build
- name: Run tests
run: |
npm run lint
npm run test:coverage
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
run: npx semantic-release