Skip to content

Commit 72b83b7

Browse files
chaancemjackson
authored andcommitted
add github actions
1 parent a78c6dd commit 72b83b7

File tree

3 files changed

+64
-18
lines changed

3 files changed

+64
-18
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
release:
8+
if: github.repository == 'remix-run/react-router'
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [14.x]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Install dependencies
24+
run: yarn install --frozen-lockfile
25+
26+
- name: Build
27+
run: yarn build
28+
29+
- name: Test
30+
run: yarn test & yarn size
31+
32+
- name: Publish
33+
env:
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: |
36+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
37+
node scripts/publish.js

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: test
2+
on: [push, pull_request]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
matrix:
10+
node-version: [14.x]
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
20+
- name: Install dependencies
21+
run: yarn install --frozen-lockfile
22+
23+
- name: Build
24+
run: yarn build
25+
26+
- name: Test
27+
run: yarn test & yarn size

.travis.yml

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

0 commit comments

Comments
 (0)