Update typescript-eslint monorepo to v8.19.0 #129
Workflow file for this run
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: Client UI | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- client-ui/** | |
- .github/workflows/client-ui.yml | |
pull_request: | |
branches: | |
- main | |
paths: | |
- client-ui/** | |
- .github/workflows/client-ui.yml | |
defaults: | |
run: | |
working-directory: ./client-ui | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
package_json_file: client-ui/package.json | |
- uses: actions/[email protected] | |
with: | |
cache: pnpm | |
cache-dependency-path: client-ui/pnpm-lock.yaml | |
node-version-file: client-ui/.nvmrc | |
- run: pnpm install | |
- run: pnpm run lint | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
package_json_file: client-ui/package.json | |
- uses: actions/[email protected] | |
with: | |
cache: pnpm | |
cache-dependency-path: client-ui/pnpm-lock.yaml | |
node-version-file: client-ui/.nvmrc | |
- run: pnpm install | |
- run: pnpm run typecheck | |
build: | |
name: build ${{ github.ref_name == 'main' && 'and push' || '' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
attestations: write | |
id-token: write | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: arkedge/clover-ui | |
steps: | |
- uses: actions/[email protected] | |
- uses: docker/[email protected] | |
with: | |
# renovate: datasource=github-releases depName=docker/buildx | |
version: "v0.19.3" | |
- uses: docker/[email protected] | |
if: github.ref_name == 'main' | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: docker/[email protected] | |
id: meta | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} | |
tags: | | |
type=sha,prefix= | |
type=raw,value=latest | |
- uses: docker/[email protected] | |
id: build-push | |
with: | |
context: ./client-ui | |
push: ${{ github.ref_name == 'main' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- uses: actions/[email protected] | |
if: github.ref_name == 'main' | |
with: | |
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} | |
subject-digest: ${{ steps.build-push.outputs.digest }} | |
push-to-registry: true |