-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.13 KB
/
ci.yml
File metadata and controls
47 lines (45 loc) · 1.13 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
name: CI
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [ main ]
pull_request:
branches: [ main, ci/** ]
types:
- opened
- synchronize
- reopened
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6.0.0
with:
node-version: 24
- name: Install dependencies client
run: |
npm i --force
- name: Run tests
run: npm test
release:
name: Release
if: github.ref == 'refs/heads/main' && !startsWith( github.event.commits[0].message, 'build(deps-dev)') && !startsWith( github.event.commits[0].message, 'ci(uplift)')
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN_UPLIFT }}
- name: Release
if: github.ref == 'refs/heads/main'
uses: gembaadvantage/uplift-action@v2.0.2
with:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_UPLIFT }}