Skip to content

Commit 12d174e

Browse files
committed
build(travis): disable travis-ci integration in favour of Github Actions
The justification being that Travis CI has incredibly slow queues at times.
1 parent 56b0148 commit 12d174e

File tree

2 files changed

+44
-11
lines changed

2 files changed

+44
-11
lines changed

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- run: npm ci
16+
- run: npm test
17+
18+
release:
19+
needs: build
20+
name: release
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-node@v1
25+
with:
26+
node-version: 12
27+
- run: npx semantic-release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
32+
# # Publish to github.
33+
# publish-gpr:
34+
# needs: build
35+
# runs-on: ubuntu-latest
36+
# steps:
37+
# - uses: actions/checkout@v2
38+
# - uses: actions/setup-node@v1
39+
# with:
40+
# node-version: 12
41+
# registry-url: https://npm.pkg.github.com/
42+
# env:
43+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
# NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)