File tree Expand file tree Collapse file tree 5 files changed +1741
-14008
lines changed Expand file tree Collapse file tree 5 files changed +1741
-14008
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and release pipeline
2
+ on :
3
+ push :
4
+ branches : [ main ]
5
+ pull_request :
6
+ branches : [ main ]
7
+ permissions :
8
+ contents : write
9
+ issues : write
10
+ pull-requests : write
11
+ id-token : write
12
+ jobs :
13
+ build :
14
+ name : Build
15
+ runs-on : ubuntu-latest
16
+ strategy :
17
+ matrix :
18
+ node-version : ['lts/*']
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v3
22
+ with :
23
+ fetch-depth : 0
24
+ - name : Setup Node.js ${{ matrix.node-version }}
25
+ uses : actions/setup-node@v3
26
+ with :
27
+ node-version : ${{ matrix.node-version }}
28
+ cache : ' npm'
29
+ - name : Install dependencies
30
+ run : npm ci
31
+ - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
32
+ run : npm audit signatures
33
+ test :
34
+ name : Fast Tests
35
+ runs-on : ubuntu-latest
36
+ needs : build
37
+ strategy :
38
+ matrix :
39
+ node-version : ['lts/*']
40
+ steps :
41
+ - name : Checkout
42
+ uses : actions/checkout@v3
43
+ with :
44
+ fetch-depth : 0
45
+ - name : Setup Node.js ${{ matrix.node-version }}
46
+ uses : actions/setup-node@v3
47
+ with :
48
+ node-version : ${{ matrix.node-version }}
49
+ cache : ' npm'
50
+ - run : npm ci
51
+ - run : npm test
52
+ - run : npm run test:mocha
53
+ release :
54
+ needs : [build, test]
55
+ runs-on : ubuntu-latest
56
+ strategy :
57
+ matrix :
58
+ node-version : ['lts/*']
59
+ if : github.ref == 'refs/heads/main' && ${{ success() }}
60
+ steps :
61
+ - name : Checkout
62
+ uses : actions/checkout@v3
63
+ - name : Set up Node.js
64
+ uses : actions/setup-node@v3
65
+ with :
66
+ node-version : ${{ matrix.node-version }}
67
+ cache : ' npm'
68
+ - name : Release
69
+ env :
70
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
71
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
72
+ run : npx semantic-release
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments