chore(deps): update typescript-eslint monorepo to v8 #1461
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: app build | |
on: push | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
MICROCMS_SERVICE_DOMAIN: ${{ secrets.MICROCMS_SERVICE_DOMAIN }} | |
MICROCMS_API_KEY: ${{ secrets.MICROCMS_API_KEY }} | |
jobs: | |
filter: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: read | |
outputs: | |
app: ${{ steps.changes.outputs.app }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: check for file changes | |
uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
token: ${{ github.token }} | |
filters: .github/filter.yaml | |
build: | |
runs-on: ubuntu-latest | |
needs: filter | |
if: needs.filter.outputs.app == 'true' | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
# The action will look for `volta.node` first. If `volta.node` isn't defined, then it will look for `engines.node` | |
# Refer: https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file | |
node-version-file: "package.json" | |
- name: setup pnpm | |
uses: pnpm/action-setup@v2.2.4 | |
id: pnpm-install | |
with: | |
# Version of pnpm to install: | |
# Optional when there is a packageManager field in the package.json. | |
# Refer: https://github.com/pnpm/action-setup#inputs | |
run_install: false | |
- name: get pnpm store | |
id: pnpm-cache | |
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: ${{ runner.os }}-pnpm-store- | |
- name: install | |
run: pnpm install --frozen-lockfile | |
- name: build | |
run: pnpm turbo build | |
app-build-check: | |
runs-on: ubuntu-latest | |
needs: build | |
if: ${{ ! failure() }} | |
steps: | |
- name: check | |
run: echo "build is successfully executed." |