Skip to content

Commit bbf3b01

Browse files
authored
Merge pull request #25 from satotake/migrate-from-travis-to-github-action
Migrate from travis to GitHub action
2 parents 6b25cc9 + 5e66e3f commit bbf3b01

File tree

5 files changed

+54
-72
lines changed

5 files changed

+54
-72
lines changed

.github/workflows/npm-publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- name: Install dependencies
20+
run: npm ci
21+
- name: Test
22+
run: |
23+
npm run test:prod
24+
npm run build
25+
- name: Release
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
29+
run: npx semantic-release

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
- '!master'
7+
jobs:
8+
test:
9+
name: Release
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Test
23+
run: |
24+
npm run test:prod
25+
npm run build

.travis.yml

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

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"report-coverage": "cat ./coverage/lcov.info | coveralls",
3636
"commit": "git-cz",
3737
"semantic-release": "semantic-release",
38-
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
3938
"precommit": "lint-staged",
4039
"travis-deploy-once": "travis-deploy-once"
4140
},

tools/semantic-release-prepare.ts

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

0 commit comments

Comments
 (0)