chore(deps): Update dependency @next-libs/cmdb-instances to ^7.22.2 #1547
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: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- name: Setup timezone | |
uses: zcong1993/setup-timezone@master | |
with: | |
timezone: Asia/Shanghai | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: 'https://registry.npmjs.org' | |
cache: yarn | |
- name: Cache nx cache | |
uses: actions/cache@v3 | |
with: | |
path: .cache | |
key: ${{ runner.os }}-nx-${{ hashFiles('yarn.lock', 'package.json') }}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-nx-${{ hashFiles('yarn.lock', 'package.json') }}- | |
# Fix `yarn install --frozen-lockfile` not working in monorepo. | |
# https://github.com/yarnpkg/yarn/issues/5840#issuecomment-468782288 | |
- name: Get checksum before yarn install | |
id: yarn-lock-check-before | |
run: echo "::set-output name=sum::$(cksum yarn.lock)" | |
- run: yarn install --frozen-lockfile | |
- name: Get checksum after yarn install | |
id: yarn-lock-check-after | |
run: echo "::set-output name=sum::$(cksum yarn.lock)" | |
- name: Exit if yarn.lock updated | |
run: exit 1 | |
if: steps.yarn-lock-check-before.outputs.sum != steps.yarn-lock-check-after.outputs.sum | |
- run: yarn build | |
- run: yarn test:ci | |
- name: Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: bricks | |
- uses: easyops-cn/actions-next-publish-from-tags@master | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
if: github.event_name == 'push' |