-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 922 Bytes
/
ci.yml
File metadata and controls
39 lines (30 loc) · 922 Bytes
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
name: CI
on:
push:
branches: [main]
jobs:
build:
name: Build and test
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16.2.0'
- name: 🔧 Install dependencies
run: npm ci
- name: 🧪 Run Tests
run: npm run test
- name: 🚀 Publish Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: 🔧 Install gitmoji-changelog
run: npm install -g gitmoji-changelog
- name: 📝 Generate Changelog
run: gitmoji-changelog
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ':robot: chore(release): update changelog [skip ci]'