File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : CI/CD
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **'
7+ tags :
8+ - ' v*'
9+ pull_request :
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v6
17+
18+ - name : Setup Node.js
19+ uses : actions/setup-node@v6
20+ with :
21+ node-version : ' 20'
22+ cache : ' yarn'
23+
24+ - name : Install dependencies
25+ run : yarn install --frozen-lockfile
26+
27+ - name : Run Tests
28+ run : yarn test
29+
30+ publish :
31+ if : startsWith(github.ref, 'refs/tags/v')
32+ runs-on : ubuntu-latest
33+ permissions :
34+ id-token : write
35+ contents : read
36+ steps :
37+ - name : Checkout
38+ uses : actions/checkout@v6
39+
40+ - name : Setup Node.js
41+ uses : actions/setup-node@v6
42+ with :
43+ node-version : ' 20'
44+ cache : ' yarn'
45+ registry-url : ' https://registry.npmjs.org'
46+
47+ - name : Install dependencies
48+ run : yarn install --frozen-lockfile
49+
50+ - name : Build
51+ run : yarn build
52+
53+ - name : Publish package
54+ run : npm publish --access public
You can’t perform that action at this time.
0 commit comments