Skip to content

Commit e65712b

Browse files
committed
ci: configure github actions
1 parent 5fdc844 commit e65712b

File tree

2 files changed

+34
-24
lines changed

2 files changed

+34
-24
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: '18'
18+
19+
- name: Get branch name
20+
shell: bash
21+
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
22+
id: branch
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build library
28+
run: npm run build
29+
30+
- name: Run semantic release and publish new version to npm
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
run: npm run semantic-release

.travis.yml

-24
This file was deleted.

0 commit comments

Comments
 (0)