Skip to content

Commit 98e4adb

Browse files
committed
ci: switched from travis to actions
1 parent f92b92e commit 98e4adb

File tree

5 files changed

+54
-381
lines changed

5 files changed

+54
-381
lines changed

.github/workflows/node-ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Node.js CI
2+
'on':
3+
push:
4+
branches:
5+
- master
6+
- alpha
7+
- beta
8+
- 'dependabot/**'
9+
pull_request:
10+
types:
11+
- opened
12+
- synchronize
13+
env:
14+
FORCE_COLOR: 1
15+
NPM_CONFIG_COLOR: always
16+
jobs:
17+
verify:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Read .nvmrc
22+
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
23+
id: nvm
24+
- name: Setup node
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
28+
- uses: bahmutov/npm-install@v1
29+
- run: npm test
30+
release:
31+
needs: verify
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Read .nvmrc
36+
run: 'echo ::set-output name=NVMRC::$(cat .nvmrc)'
37+
id: nvm
38+
- name: Setup node
39+
uses: actions/setup-node@v1
40+
with:
41+
node-version: '${{ steps.nvm.outputs.NVMRC }}'
42+
- uses: bahmutov/npm-install@v1
43+
- name: semantic-release
44+
run: npx semantic-release
45+
env:
46+
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
47+
NPM_TOKEN: '${{ secrets.NPM_PUBLISH_TOKEN }}'

.travis.yml

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

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ for [ESLint](https://eslint.org) for [React](https://reactjs.org) components
55

66
<!--status-badges start -->
77

8-
[![Build Status][ci-badge]][ci-link]
8+
[![Node CI Workflow Status][github-actions-ci-badge]][github-actions-ci-link]
99

1010
<!--status-badges end -->
1111

@@ -57,10 +57,6 @@ $ npm test
5757

5858
[license-badge]: https://img.shields.io/github/license/dsmjs/eslint-config-react.svg
5959

60-
[ci-link]: https://travis-ci.com/dsmjs/eslint-config-react
61-
62-
[ci-badge]: https://img.shields.io/travis/com/dsmjs/eslint-config-react/master.svg
63-
6460
[commit-convention-link]: https://conventionalcommits.org
6561

6662
[commit-convention-badge]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg
@@ -80,3 +76,7 @@ $ npm test
8076
[dependabot-link]: https://dependabot.com/
8177

8278
[dependabot-badge]: https://badgen.net/dependabot/dsmjs/eslint-config-react/?icon=dependabot
79+
80+
[github-actions-ci-link]: https://github.com/dsmjs/eslint-config-react/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster
81+
82+
[github-actions-ci-badge]: https://github.com/dsmjs/eslint-config-react/workflows/Node.js%20CI/badge.svg

0 commit comments

Comments
 (0)