Skip to content

Update source file services.json #6806

Update source file services.json

Update source file services.json #6806

Workflow file for this run

name: Lint & format
on:
push:
branches-ignore: [dev, main, renovate/*]
jobs:
lintformat:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
FORCE_COLOR: true
# GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }}
name: 'Lint & format'
runs-on: ubuntu-latest
steps:
# Setup steps
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@72b6676b71ab476b77e676928516f6982eef7a41 # v5
with:
gpg_private_key: ${{ secrets.BOT_GPG_KEY }}
git_user_signingkey: true
git_config_global: true
git_commit_gpgsign: true
- name: Install Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3
with:
node-version: 18
- uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd # v2.2.4
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # 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 dependencies
run: pnpm install
# Linting & Formatting
- name: Lint workspace
run: pnpm lint:pkg
if: always()
id: workspace-lint
- name: Lint projects
run: pnpm lint:fix -- --format github
if: always()
id: lint
env:
ESLINT_APP_ID: ${{ secrets.BOT_APP_ID }}
ESLINT_PRIVATE_KEY_BASE64: ${{ secrets.BOT_SECRET_KEY_B64 }}
- name: Format projects
run: pnpm format
if: always()
id: format
# - name: Check Types
# run: pnpm types:check
# if: always()
# id: typecheck
# Commit changes
- name: Commit changed files
uses: EndBug/add-and-commit@1bad3abcf0d6ec49a5857d124b0bfb52dc7bb081 # v9
if: always()
with:
message: 'chore: lint & format'
commit: --signoff --no-verify
committer_name: InReach Bot
committer_email: [email protected]
author_name: InReach Bot
author_email: [email protected]