chore(release): 🤖 publish #679
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run lint | |
run: yarn lint | |
'E2E_Tests': | |
runs-on: ubuntu-latest | |
services: | |
verdaccio: | |
image: verdaccio/verdaccio:4.0.0 | |
ports: | |
- 4873:4873 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: | | |
yarn install --frozen-lockfile | |
yarn --cwd fixtures/app install --no-lockfile | |
- name: Verdaccio login | |
run: | | |
npx npm-cli-adduser \ | |
-u username \ | |
-p pass \ | |
-e [email protected] \ | |
-r http://localhost:4873 || true | |
- name: Configure git | |
run: | | |
git config --global user.name 'Verdaccio User' | |
git config --global user.email '[email protected]' | |
- name: Get changed packages | |
id: changed-packages | |
run: | | |
changed_packages=$(yarn -s lerna list --since | sed 's/$/\@0.0.0-verdaccio/' | xargs echo) | |
echo "::set-output name=PACKAGES::$changed_packages" | |
- name: Publish packages | |
run: | | |
yarn lerna publish \ | |
'0.0.0-verdaccio' \ | |
--registry http://localhost:4873 \ | |
--no-git-tag-version \ | |
--no-push \ | |
--yes | |
- name: Install packages and run test | |
if: steps.changed-packages.outputs.PACKAGES | |
run: | | |
yarn --cwd fixtures/app add \ | |
--registry http://localhost:4873 \ | |
-D ${{ steps.changed-packages.outputs.PACKAGES }} | |
yarn --cwd fixtures/app test |