Skip to content

Commit

Permalink
Automatic releases, canary channel (jaredpalmer#2118)
Browse files Browse the repository at this point in the history
Automatic releases, canary channel
  • Loading branch information
jaredpalmer authored Dec 12, 2019
2 parents 69acd21 + d45c2da commit 708bedc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 23 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Canary
name: Publish

on:
push:
Expand All @@ -8,7 +8,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
name: Build and test
name: Build, test, Publish
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
Expand All @@ -18,21 +18,10 @@ jobs:
- run: yarn test
env:
CI: true

publish:
needs: build
runs-on: ubuntu-latest
name: Publish canary to NPM
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12

- run: yarn install --frozen-lockfile

- name: Publish
- 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: Publish to npm
run: yarn run lerna publish from-git --npm-tag canary --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "2.0.8-canary.0"
"version": "2.0.8-canary.3"
}
4 changes: 2 additions & 2 deletions packages/formik-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "formik-native",
"version": "2.0.8-canary.0",
"version": "2.0.8-canary.3",
"license": "MIT",
"author": "Jared Palmer <jared@palmer.net>",
"repository": "jaredpalmer/formik",
Expand Down Expand Up @@ -44,7 +44,7 @@
"trailingComma": "es5"
},
"dependencies": {
"formik": "2.0.8-canary.0"
"formik": "2.0.8-canary.3"
},
"devDependencies": {
"@react-native-community/eslint-config": "^0.0.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/formik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

---

**The below readme is the documentation for the `next` (prerelease) version of Formik. To view the documentation for the latest stable Formik version visit [jaredpalmer.com/formik/docs](https://jaredpalmer.com/formik/docs/overview)**
**The below readme is the documentation for the `canary` (prerelease) version of Formik. To view the documentation for the latest stable Formik version visit [jaredpalmer.com/formik/docs](https://jaredpalmer.com/formik/docs/overview)**

---

Expand Down Expand Up @@ -96,7 +96,7 @@ specification. Contributions of any kind welcome!

## Related

- [TSDX](https://github.com/palmerhq/tsdx) - Zero-config CLI for TypeScript used by this repo.
- [TSDX](https://github.com/jaredpalmer/tsdx) - Zero-config CLI for TypeScript used by this repo.

---

Expand Down
2 changes: 1 addition & 1 deletion packages/formik/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "formik",
"description": "Forms in React, without tears",
"version": "2.0.8-canary.0",
"version": "2.0.8-canary.3",
"license": "MIT",
"author": "Jared Palmer <jared@palmer.net>",
"repository": "jaredpalmer/formik",
Expand Down

0 comments on commit 708bedc

Please sign in to comment.