File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ - push
4+ - pull_request
5+
6+ defaults :
7+ run :
8+ shell : bash
9+
10+ jobs :
11+ Test :
12+ if : " !contains(github.event.head_commit.message, '[skip ci]')"
13+ name : ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
14+ runs-on : ${{ matrix.os }}
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ os :
19+ - ubuntu-latest
20+ # - macos-latest
21+ # - windows-latest
22+ atom_channel : [stable, beta]
23+ steps :
24+ - uses : actions/checkout@v2
25+ - uses : UziTech/action-setup-atom@v1
26+ with :
27+ channel : ${{ matrix.atom_channel }}
28+ - name : Versions
29+ run : apm -v
30+ - name : Install APM dependencies
31+ run : |
32+ apm ci # uses locked module. use `apm install` for non-locked
33+
34+ Release :
35+ needs : [Test]
36+ if : github.ref == 'refs/heads/master' &&
37+ github.event.repository.fork == false
38+ runs-on : ubuntu-latest
39+ steps :
40+ - uses : actions/checkout@v2
41+ - uses : UziTech/action-setup-atom@v1
42+ - uses : actions/setup-node@v1
43+ with :
44+ node-version : " 14.x"
45+ - name : NPM install
46+ run : npm ci
47+ - name : Release 🎉
48+ uses : cycjimmy/semantic-release-action@v2
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
52+ Skip :
53+ if : contains(github.event.head_commit.message, '[skip ci]')
54+ runs-on : ubuntu-latest
55+ steps :
56+ - name : Skip CI 🚫
57+ run : echo skip ci
You can’t perform that action at this time.
0 commit comments