chore: update lockfile #1252
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 | |
env: | |
CI: true | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
name: build | |
runs-on: ubuntu-22.04 | |
steps: | |
# https://github.com/actions/checkout | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
# https://github.com/actions/checkout/issues/217 | |
fetch-depth: 0 | |
# do not overwrite github auth in release step | |
# https://github.com/lerna/lerna/issues/1957#issuecomment-702396095 | |
persist-credentials: false | |
# https://github.com/actions/checkout/issues/217 pulls all tags (needed for lerna to correctly version) | |
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
# https://github.com/actions/setup-node | |
- name: Setup Node 20 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Install | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn run lint | |
- name: Build Packages | |
run: yarn run build:pkgs | |
- name: Build Apps | |
run: yarn run build:apps | |
- name: Test | |
run: yarn run test:ci | |
env: | |
DEBUG_PRINT_LIMIT: 50000 | |
- name: Archive test artifacts | |
uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: cypress | |
path: | | |
examples/discovery-search-app/cypress/screenshots | |
- name: NPM Identity | |
if: github.ref == 'refs/heads/master' | |
run: | | |
echo "npmRegistries:" >> ~/.yarnrc.yml | |
echo " //registry.npmjs.org:" >> ~/.yarnrc.yml | |
echo " npmAuthToken: $NPM_TOKEN" >> ~/.yarnrc.yml | |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | |
npm whoami | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Github Identity | |
if: github.ref == 'refs/heads/master' | |
run: | | |
git config --global push.default simple | |
git config --global user.email "[email protected]" | |
git config --global user.name "Watson Github Bot" | |
git config remote.origin.url https://x-access-token:[email protected]/$GITHUB_REPOSITORY | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
- name: Publish | |
if: github.ref == 'refs/heads/master' | |
run: yarn run lerna publish -y --create-release github | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |