Skip to content

Commit edf643b

Browse files
authored
Merge pull request #36 from 8base/add-form-data-callbacks
feat(forms): add form data callbacks
2 parents e433dc3 + 21afe72 commit edf643b

File tree

16 files changed

+140
-62
lines changed

16 files changed

+140
-62
lines changed

.github/workflows/checks.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: checks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
18+
- name: Install Dependencies
19+
run: yarn --frozen-lockfile
20+
21+
- name: Build packages
22+
run: yarn build-packages
23+
24+
- name: Run linter
25+
run: yarn lint
26+
27+
- name: Run prettier
28+
run: yarn prettier:check
29+
30+
- name: Run tests
31+
run: yarn test

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Install Dependencies
15+
run: yarn --frozen-lockfile
16+
17+
- name: Build packages
18+
run: yarn build-packages
19+
20+
- name: Run linter
21+
run: yarn lint
22+
23+
- name: Run prettier
24+
run: yarn prettier:check
25+
26+
- name: Run tests
27+
run: yarn test
28+
29+
- name: Publish
30+
run: sh ./bin/pubpish.sh
31+
32+
env:
33+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.travis.yml

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

bin/try-publish.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ fi
1818

1919
if [ "$published" != "$version" ]; then
2020
echo "Try to publish $version version of the $name package."
21-
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
21+
echo "//registry.npmjs.org/:_authToken=\${NPM_AUTH_TOKEN}" > .npmrc
2222
npm publish --access public; if [ "$?" != "0" ]; then status=1; fi
23-
else
23+
else
2424
echo "Current version of the package already published to the NPM."
2525
fi
2626

@@ -32,4 +32,4 @@ else
3232
echo -e "\n\033[0;32mThe try to publish for \"${package}\" exited with 0\033[0m\n"
3333
fi
3434

35-
exit $status
35+
exit $status

packages/8base-react-sdk/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"repository": "https://github.com/8base/react-sdk",
55
"main": "dist/index.js",
66
"module": "dist/index.js",
7+
"typings": "dist/index.d.ts",
78
"scripts": {
89
"build": "../../bin/build-package.sh",
910
"watch": "../../bin/watch-package.sh",

packages/app-provider/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"homepage": "https://github.com/8base/react-sdk/tree/master/packages/app-provider#readme",
66
"main": "dist/index.js",
77
"module": "dist/index.js",
8+
"typings": "dist/index.d.ts",
89
"scripts": {
910
"build": "../../bin/build-package.sh",
1011
"watch": "../../bin/watch-package.sh",

packages/auth/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"homepage": "https://github.com/8base/react-sdk/tree/master/packages/react-auth#readme",
66
"main": "dist/index.js",
77
"module": "dist/index.js",
8+
"typings": "dist/index.d.ts",
89
"scripts": {
910
"build": "../../bin/build-package.sh",
1011
"watch": "../../bin/watch-package.sh",

packages/crud/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"homepage": "https://github.com/8base/react-sdk/tree/master/packages/crud#readme",
66
"main": "dist/index.js",
77
"module": "dist/index.js",
8+
"typings": "dist/index.d.ts",
89
"scripts": {
910
"build": "../../bin/build-package.sh",
1011
"watch": "../../bin/watch-package.sh"

packages/file-input/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"homepage": "https://github.com/8base/react-sdk/tree/master/packages/file-input#readme",
66
"main": "dist/index.js",
77
"module": "dist/index.js",
8+
"typings": "dist/index.d.ts",
89
"scripts": {
910
"build": "../../bin/build-package.sh",
1011
"watch": "../../bin/watch-package.sh",

packages/forms/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"homepage": "https://github.com/8base/react-sdk/tree/master/packages/forms#readme",
66
"main": "dist/index.js",
77
"module": "dist/index.js",
8+
"typings": "dist/index.d.ts",
89
"scripts": {
910
"build": "../../bin/build-package.sh",
1011
"watch": "../../bin/watch-package.sh",
@@ -23,13 +24,13 @@
2324
"@8base/error-codes": "^1.0.21",
2425
"@8base/utils": "^1.2.8",
2526
"@8base/validate": "^1.2.8",
26-
"final-form": "^4.16.1",
27-
"final-form-arrays": "^1.1.2",
27+
"final-form": "^4.20.1",
28+
"final-form-arrays": "^3.0.2",
2829
"graphql-tag": "^2.10.0",
2930
"prop-types": "^15.6.1",
3031
"ramda": "^0.26.1",
31-
"react-final-form": "^6.3.0",
32-
"react-final-form-arrays": "^3.1.0"
32+
"react-final-form": "^6.5.1",
33+
"react-final-form-arrays": "^3.1.2"
3334
},
3435
"devDependencies": {
3536
"@babel/core": "^7.4.3",

0 commit comments

Comments
 (0)