Skip to content

feat!: refactor login processes #265

feat!: refactor login processes

feat!: refactor login processes #265

Workflow file for this run

name: Inspect Pull Requests
on:
pull_request:
branches: [main]
env:
COREPACK_ENABLE_STRICT: 0
jobs:
bundlesize:
if: ${{ always() }}
needs: release-bundlesize
runs-on: ubuntu-latest
permissions:
pull-requests: write
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v4
- run: |
pnpm install --ignore-scripts
npx lerna run build
npx lerna run stats:pr
npx lerna run stats:report
- uses: mshick/add-pr-comment@v2
if: always()
with:
refresh-message-position: true
message-path: |
packages/auth-provider/tmp/pr-stats.md
inspect:
if: ${{ always() }}
needs: release-bundlesize
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v4
- run: |
pnpm install --ignore-scripts
npx lerna run lint
npx lerna run build
npx lerna run test:coverage
release-bundlesize:
if: github.head_ref == 'release-please--branches--main'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
strategy:
matrix:
node-version: [20.x]
steps:
# secrets.GITHUB_TOKEN is used by default with "checkout",
# but in this case we are explicitely using a personal
# token with the same permissions (NODE_CLI).
# This is because we want to use the "release-please" action
# that updates and commit files. Other jobs should react to
# these commits and run.
# From GitHub docs: "When you use the repository's GITHUB_TOKEN
# to perform tasks on behalf of the GitHub Actions app, events
# triggered by the GITHUB_TOKEN will not create a new workflow
# run. This prevents you from accidentally creating recursive
# workflow runs.
- uses: actions/checkout@v4
with:
token: ${{ secrets.NODE_CLI }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v4
- run: |
pnpm install --ignore-scripts
npx lerna run build
npx lerna run stats:release
- name: Commit Release Stats
uses: stefanzweifel/git-auto-commit-action@v5