Skip to content

Commit 7b907e8

Browse files
authored
fix: update packages (#118)
* fix: update packages * fix: typescript issue * fix: run formatter * feat: update example to use typescript * fix: remove example unit test * fix: update rollup dependencies * fix: add core-js to dev dependencies * ci: move to github actions * fix: semantic-release branches * fix: add missing size limit package * fix: packages and example deployment * fix: more config on package.json * fix: workflow syntax ' * fix: use npx for codecov * ci: downgrade size-limit * fix: size-limit file names
1 parent 4db962e commit 7b907e8

36 files changed

+21941
-51522
lines changed

.github/workflows/main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
build:
5+
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
6+
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
node: ['12.x', '14.x', '16.x']
11+
os: [ubuntu-latest, macOS-latest]
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v2
16+
17+
- name: Use Node ${{ matrix.node }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node }}
21+
22+
- name: Install deps and build (with cache)
23+
uses: bahmutov/npm-install@v1
24+
25+
- name: Lint
26+
run: yarn lint
27+
28+
- name: Test
29+
run: yarn test --ci --coverage --maxWorkers=2
30+
31+
- name: Coverage
32+
run: npx codecov -f coverage/*.json
33+
34+
- name: Build
35+
run: yarn build
36+
37+
- name: Pack Inspect
38+
run: yarn pack:inspect
39+
40+
- name: Release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
run: yarn semantic-release
45+
46+
- name: Deploy Example
47+
if: ${{ github.ref == 'refs/heads/master' }}
48+
run: yarn deploy-example

.github/workflows/size.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: size
2+
on: [pull_request]
3+
jobs:
4+
size:
5+
runs-on: ubuntu-latest
6+
env:
7+
CI_JOB_NUMBER: 1
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: andresz1/size-limit-action@v1
11+
with:
12+
github_token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ yarn-error.log*
2323
.rpt*
2424
coverage
2525

26-
yarn.lock
26+
*.tgz

.prettierrc.json

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

.travis.yml

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

example/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

0 commit comments

Comments
 (0)