forked from jaredpalmer/formik
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pr/SuperManEver/2093
- Loading branch information
Showing
66 changed files
with
9,978 additions
and
4,451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"sandboxes": ["ooh2y"], | ||
"buildCommand": "build" | ||
"buildCommand": "build", | ||
"packages": ["packages/formik", "packages/formik-native"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build, test, Publish | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn test | ||
env: | ||
CI: true | ||
- name: Potentially save npm token | ||
run: | | ||
([[ ! -z ${{ secrets.NPM_TOKEN }} ]] && echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc) || echo "Did not write npm token" | ||
- name: Potentially publish canary to npm | ||
run: | | ||
if \ | ||
ls ~/.npmrc >/dev/null 2>&1 && \ | ||
[[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]]; \ | ||
then | ||
yarn run lerna publish from-git --npm-tag canary --yes | ||
else | ||
echo "Did not publish canary" | ||
fi | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Potentially publish stable to npm | ||
run: | | ||
if \ | ||
ls ~/.npmrc >/dev/null 2>&1 && \ | ||
[[ ! $(git describe --exact-match 2> /dev/null || :) =~ -canary ]]; \ | ||
then | ||
yarn run lerna publish from-git --yes | ||
else | ||
echo "Did not publish" | ||
fi | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node: ['10.x', '12.x'] | ||
|
||
name: Test on node ${{ matrix.node }} | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/yarn | ||
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install deps, build, and test | ||
run: | | ||
node --version | ||
npm --version | ||
yarn --version | ||
yarn install --frozen-lockfile | ||
yarn test --coverage | ||
env: | ||
CI: true | ||
NODE_OPTIONS: --max-old-space-size=4096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.