buil(all): improvement - publish:canary:major:github
MODIFY
.github/workflows/publish-next.yml
.github/workflows/publish-next.yml
@@ -19,6 +19,9 @@ jobs:
run: |
yarn
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
+ yarn clean
+ yarn build
+ yarn test
npm run publish:canary:major:github
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

MODIFY
package.json
package.json
"purge": "yarn clean && rimraf node_modules",
"prepublishOnly": "yarn clean && yarn build && yarn test",
"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 --dist-tag next --canary major --preid next --npm-client npm --yes --no-verify-access --no-git-reset",
+ "publish:canary:minor": "lerna publish --no-push --dist-tag dev --canary minor --preid dev --force-publish=* --npm-client npm --ignore-scripts",
+ "publish:canary:major": "lerna publish --no-push --dist-tag next --canary major --preid next --force-publish=* --npm-client npm --ignore-scripts",
+ "publish:canary:major:github": "lerna publish --dist-tag next --canary major --preid next --npm-client npm --yes --force-publish=* --no-verify-access --no-git-reset --ignore-scripts",
"precommit": "lint-staged"
},
"lint-staged": {

MODIFY
packages/messaging/src/index.spec.ts
packages/messaging/src/index.spec.ts
@@ -4,6 +4,7 @@ describe('@marblejs/messaging', () => {
test('public APIs are defined', () => {
expect(API.Transport).toBeDefined();
expect(API.TransportLayerToken).toBeDefined();
+ expect(API.ServerEvent).toBeDefined();
expect(API.createMicroservice).toBeDefined();
expect(API.messagingClient).toBeDefined();
expect(API.messagingListener).toBeDefined();

buil(all): improvement - publish:canary:major:github