-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.23 KB
/
ci.yml
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
44
45
46
47
name: ci
on: push
jobs:
test:
runs-on: ubuntu-20.04
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Install everything 📦
# https://github.com/bahmutov/npm-install
uses: bahmutov/npm-install@v1
- name: Run tests 🧪
run: npm test
- name: Build 🏗️
run: npm run build
- name: Example 1 💎
run: npm run example
- name: Example 2 scoped 💎
run: npm run example-scoped
- name: Example 3 standard 💎
run: npm run example-standard
- name: Example 4 not found 💎
run: npm run example-not-found
- name: Audit dependencies 🔎
run: npm run deps || echo "ughh, need to bump dependencies"
release:
needs: [test]
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Install only the semantic release 📦
run: npm install semantic-release
- name: Semantic Release 🚀
uses: cycjimmy/semantic-release-action@v3
with:
branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}