Skip to content

Commit e2255c2

Browse files
kirill-konshinmelanieseltzerDanielOrtel
authored
Types enchancements (#295)
* Fix #280 * Fix #207 * Minor fixes * Updated API * Updated versions * Update README.md * Fixed demos & tests * Github Action * Make demo-dynamic private * Fix #326 * Fix hot reloading issues by removing the store from window (#324) Co-authored-by: Melanie Seltzer <[email protected]> Co-authored-by: Daniel Ferenc Balogh <[email protected]>
1 parent 1549634 commit e2255c2

File tree

36 files changed

+2463
-3155
lines changed

36 files changed

+2463
-3155
lines changed

.github/workflows/publish.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Publish
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: '15.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
18+
- id: yarn-cache-dir-path
19+
run: echo "::set-output name=dir::$(yarn cache dir)"
20+
21+
- uses: actions/cache@v2
22+
with:
23+
path: |
24+
${{ steps.yarn-cache-dir-path.outputs.dir }}
25+
packages/*/.next/cache
26+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-yarn-
29+
30+
- run: yarn install --prefer-offline
31+
32+
- run: DEBUG=eslint:cli-engine yarn lint:all
33+
34+
- run: yarn build
35+
36+
- run: yarn test
37+
env:
38+
CI: true
39+
40+
- run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
41+
42+
- run: yarn publish:release ${TAG} --yes
43+
if: ${{ env.TAG != '' && !contains(env.TAG, '/') && !contains(env.TAG, '-') }}
44+
env:
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
47+
- run: yarn publish:release ${TAG} --yes --dist-tag next
48+
if: ${{ env.TAG != '' && !contains(env.TAG, '/') && contains(env.TAG, '-') }}
49+
env:
50+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
52+
# - run: yarn test:coverage
53+
# env:
54+
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
55+
# - uses: coverallsapp/github-action@master
56+
# if: success()
57+
# with:
58+
# github-token: ${{ secrets.GITHUB_TOKEN }}
59+
# path-to-lcov: 'packages/*/coverage/lcov.info'

0 commit comments

Comments
 (0)