-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 945 Bytes
/
Copy pathci.yml
File metadata and controls
43 lines (36 loc) · 945 Bytes
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
name: Continuous Integration
on:
- push
- pull_request
jobs:
build:
name: 'Test, build, release'
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v6
- name: 'Setup Node'
uses: actions/setup-node@v6
with:
node-version: 24
- name: 'Install Depependencies'
run: npm install --force
- name: 'Tests'
run: |
npm run test
- name: 'Mutation Tests'
run: |
npm run test:m
- name: 'Build'
run: |
npm run build
- name: 'Release'
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next')
run: |
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}