Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit be4297c

Browse files
authored
Merge pull request #50 from alvarosaburido/feature/semantic-release
feat(ci): add semantic release with github actions
2 parents 4769e0e + 095d11c commit be4297c

File tree

3 files changed

+15627
-9707
lines changed

3 files changed

+15627
-9707
lines changed

.github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
- dev
11+
12+
jobs:
13+
test-and-release:
14+
name: Run tests and release
15+
runs-on: ubuntu-18.04
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v1
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 12
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Run tests
26+
run: npm run test
27+
- name: Release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
CI: true
32+
run: npm run semantic-release

0 commit comments

Comments
 (0)