File tree Expand file tree Collapse file tree 2 files changed +75
-0
lines changed Expand file tree Collapse file tree 2 files changed +75
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - ' *'
10+
11+ jobs :
12+ build :
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, windows-latest, macos-latest]
16+ runs-on : ${{ matrix.os }}
17+ name : " Build - ${{ matrix.os }}"
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - name : Set up Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : ' 20'
26+
27+ - name : Install dependencies
28+ run : npm install
29+
30+ - name : Build
31+ run : npm run build
32+
33+ - name : Test
34+ run : npm test
Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - ' *'
10+
11+ jobs :
12+ build :
13+ strategy :
14+ matrix :
15+ os : [ubuntu-latest, windows-latest, macos-latest]
16+ runs-on : ${{ matrix.os }}
17+ name : " Build - ${{ matrix.os }}"
18+
19+ steps :
20+ - uses : actions/checkout@v4
21+
22+ - name : Set up Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : ' 20'
26+
27+ - name : Install dependencies
28+ run : npm install
29+
30+ - name : Build
31+ run : npm run build
32+
33+ - name : Create release
34+ uses : softprops/action-gh-release@v2
35+ with :
36+ files : dist/*
37+ tag_name : ${{ github.ref }}
38+ name : ${{ github.ref }}
39+ body : |
40+ This is a release for version ${{ github.ref }}.
41+ It contains the compiled files from the build process.
You can’t perform that action at this time.
0 commit comments