build(all): added worflow - build canary next build
ADD
.github/workflows/publish-next.yml
+name: Publish canary "next" build
+
+on:
+ push:
+ branches:
+ - next
+
+jobs:
+ publish:
+ name: Build and publish
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v1
+ - name: Use Node.js 12
+ uses: actions/setup-node@v1
+ with:
+ node-version: 12
+ - name: Build packages & publish to npm registry
+ run: |
+ yarn
+ npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
+ npm run publish:canary:major:github
+ env:
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+

MODIFY
package.json
package.json
"publish": "lerna publish --no-push --force-publish=*",
"publish:canary:minor": "lerna publish --no-push --dist-tag dev --canary minor --preid dev --force-publish=* --npm-client npm",
"publish:canary:major": "lerna publish --no-push --dist-tag next --canary major --preid next --force-publish=* --npm-client npm",
+ "publish:canary:major:github": "lerna publish --no-push --dist-tag next --canary major --preid next --force-publish=* --npm-client npm --yes --no-verify-access --no-git-reset",
"precommit": "lint-staged"
},
"lint-staged": {

build(all): added worflow - build canary next build