chore(deps): Update dependency eslint-plugin-react to ^7.37.3 #190
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: [20.x] | |
steps: | |
- 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('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-nx- | |
# 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: | |
# token: ${{ secrets.CODECOV_TOKEN }} | |
# directory: bricks | |
- uses: easyops-cn/actions-next-publish-from-tags@master | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
if: github.event_name == 'push' |