chore(deps): bump react-use from 17.5.1 to 17.6.0 #1656
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
# This workflow will do a clean install of node dependencies, build the source code, and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
# If adding a step that requires SECRETS or GITHUB WRITE PERMISSIONS be sure to have dependabot skip it. | |
# > if: ${{ github.actor != 'dependabot[bot]' }} | |
name: Node.js CI | |
on: | |
pull_request: | |
branches: [master] | |
merge_group: | |
jobs: | |
# This job will: | |
# * deploy a draft every time there is a pull request created or synchronized that is not on master branch | |
# * comment on that pull request with the deploy URL | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
node: [16, 18] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v3 | |
with: | |
main-branch-name: 'master' | |
- name: Set Node Version | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- name: Restore yarn cache | |
uses: actions/cache@v3 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-${{ matrix.node }}-yarn-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.node }}-yarn- | |
# - name: Artifactory Check | |
# run: yarn check:registry | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Build | |
run: yarn build:components | |
- name: Lint | |
run: yarn nx affected --target=lint | |
- name: Unit Test | |
run: yarn test:ci | |
- name: Version Bump Dry Run | |
run: yarn version:dry-run | |
- name: Upload coverage report | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
uses: codecov/codecov-action@v3 # FIXME: no CI provider detected | |
with: | |
file: ./coverage/coverage-final.json | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Build Docs (Node 18 Only) | |
if: ${{matrix.node > 16}} | |
run: yarn build:docs | |
- name: Build Storybook | |
run: yarn build:storybook | |
# TODO: fix Netlify draft deploys, investigate gh-pages for draft docs | |
# if: github.actor != 'dependabot[bot]' | |
# - name: Deploy draft to Netlify | |
# uses: South-Paw/[email protected] | |
# if: github.actor != 'dependabot[bot]' | |
# with: | |
# github-token: ${{ secrets.BOT_TOKEN }} | |
# netlify-auth-token: ${{ secrets.NETLIFY_DEPLOY_KEY }} | |
# netlify-site-id: ${{ secrets.NETLIFY_SITE_API_ID }} | |
# config-path: './netlify.toml' | |
# build-dir: './docusaurus/build' | |
# draft: true | |
# comment-on-pull-request: true |