Skip to content

Commit b21504e

Browse files
authored
refactor: add workflows folder (#2)
1 parent 8e3513b commit b21504e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pipeline
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: '12.x'
19+
- name: Install 🔧
20+
run: npm ci
21+
22+
- name: Build 🏗️
23+
run: npm run build
24+
25+
- name: Release 🚀
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
run: npm run semantic-release

0 commit comments

Comments
 (0)