Skip to content

Commit e31b44f

Browse files
authored
chore: Move to GH actions from Travis CI (#28)
1 parent bf52a7c commit e31b44f

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
name: Release
3+
4+
on: [push]
5+
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v1
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Release
20+
uses: codfish/semantic-release-action@v1
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.travis.yml

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

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-scroll-sync",
33
"version": "0.0.0-development",
4-
"description": "Syncronize scroll positions across multiple scrollable containers",
4+
"description": "Synchronize scroll positions across multiple scrollable containers",
55
"main": "dist/index.js",
66
"scripts": {
77
"clean": "rimraf ./dist",
@@ -12,8 +12,7 @@
1212
"lint:fix": "npm run lint -- --fix",
1313
"lint:staged": "lint-staged",
1414
"styleguide:server": "styleguidist server",
15-
"styleguide:build": "styleguidist build",
16-
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
15+
"styleguide:build": "styleguidist build"
1716
},
1817
"lint-staged": {
1918
"*.js": [
@@ -68,8 +67,7 @@
6867
"react-dom": "15.3.2",
6968
"react-styleguidist": "5.0.0-beta8",
7069
"rimraf": "2.5.4",
71-
"webpack": "1.13.2",
72-
"semantic-release": "6.3.6"
70+
"webpack": "1.13.2"
7371
},
7472
"peerDependencies": {
7573
"react": "0.14.x || 15.x || 16.x",

0 commit comments

Comments
 (0)