package,github/workflows: add root lerna command and use in github workflows + fix master

This commit is contained in:
Patrik Oldsberg
2020-04-01 23:10:22 +02:00
parent 488232ce73
commit ab827f36e1
3 changed files with 27 additions and 8 deletions
+13 -4
View File
@@ -48,12 +48,21 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: yarn install
run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test
- name: lint
run: yarn lerna -- run lint --since origin/master
- name: build
run: yarn build
- name: test
run: yarn lerna -- run test --since origin/master -- --coverage
- name: yarn bundle, if app was changed
run: git diff --quiet origin/master HEAD -- packages/app packages/core || yarn bundle
run: git diff --quiet origin/master HEAD -- yarn.lock packages/app packages/core || yarn bundle
- name: verify storybook
run: yarn workspace storybook build-storybook
+13 -4
View File
@@ -47,16 +47,25 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/ # Needed for auth
- name: yarn install
run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test
- name: lint
run: yarn lerna -- run lint
- name: build
run: yarn build
- name: test
run: yarn lerna -- run test -- --coverage
# Publishes current version of packages that are not already present in the registry
- name: publish
run: npx --no-install lerna publish from-package --yes
run: yarn lerna -- publish from-package --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Tags the commit with the version in the core package if the tag doesn't exist
- uses: Klemensas/action-autotag@1.2.3
with: