Skip to content

Commit

Permalink
Merge branch 'master' into pr/SuperManEver/2093
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Dec 12, 2019
2 parents 38ea6ba + 9f5eae1 commit 1d8a9ff
Show file tree
Hide file tree
Showing 66 changed files with 9,978 additions and 4,451 deletions.
3 changes: 2 additions & 1 deletion .codesandbox/ci.json
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"]
}
31 changes: 0 additions & 31 deletions .github/workflows/nodejs.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/release.yml
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 }}
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
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
12 changes: 3 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
dist
compiled
*.log
Expand All @@ -8,19 +7,14 @@ next.d.ts
legacy.d.ts
.idea
*.orig
.DS_Store

node_modules

lib/core/metadata.js
lib/core/MetadataBlog.js
package-lock.json
yarn.lock
!/yarn.lock

website/translated_docs
website/build/
website/yarn.lock
website/node_modules
website/i18n/*
.rts2_cache_es
.rts2_cache_esm
.rts2_cache_cjs
.rts2_cache_umd
74 changes: 0 additions & 74 deletions .storybook/config.js

This file was deleted.

Loading

0 comments on commit 1d8a9ff

Please sign in to comment.