From b8ebc39b7299cdcd1df049a877bc986a8be6af4c Mon Sep 17 00:00:00 2001 From: MH4GF Date: Fri, 20 Dec 2024 20:17:31 +0900 Subject: [PATCH] maintenance: reflect from change directory --- .github/workflows/figma-to-css-variables.yml | 9 --------- .github/workflows/frontend-ci.yml | 15 --------------- .github/workflows/license-frontend.yml | 16 +++++----------- .github/workflows/release.yml | 9 --------- .github/workflows/vercel-deploy-erd-sample.yml | 4 ---- .github/workflows/vercel-deploy.yml | 2 -- .gitignore | 1 + frontend/.node-version => .node-version | 0 frontend/.syncpackrc => .syncpackrc | 0 frontend/turbo.json => turbo.json | 0 10 files changed, 6 insertions(+), 50 deletions(-) rename frontend/.node-version => .node-version (100%) rename frontend/.syncpackrc => .syncpackrc (100%) rename frontend/turbo.json => turbo.json (100%) diff --git a/.github/workflows/figma-to-css-variables.yml b/.github/workflows/figma-to-css-variables.yml index 3c719e219..0582951dd 100644 --- a/.github/workflows/figma-to-css-variables.yml +++ b/.github/workflows/figma-to-css-variables.yml @@ -3,9 +3,6 @@ name: Figma to CSS Variables on: workflow_dispatch: -env: - working-directory: frontend - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -19,15 +16,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 - defaults: - run: - working-directory: ${{ env.working-directory }} - steps: - uses: actions/checkout@v4 - uses: ./.github/actions/pnpm-setup - with: - working-directory: ${{ env.working-directory }} - run: pnpm --filter @packages/figma-to-css-variables sync --output '../../apps/service-site/src/styles' --filter-modes "Dark,Mode 1" env: FIGMA_FILE_KEY: ${{ secrets.FIGMA_FILE_KEY }} diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index d878deb4d..900e395e4 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -4,9 +4,6 @@ on: pull_request: merge_group: -env: - working-directory: frontend - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -34,15 +31,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 - defaults: - run: - working-directory: ${{ env.working-directory }} - steps: - uses: actions/checkout@v4 - uses: ./.github/actions/pnpm-setup - with: - working-directory: ${{ env.working-directory }} - run: pnpm lint frontend-ci: @@ -51,13 +42,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 - defaults: - run: - working-directory: ${{ env.working-directory }} - steps: - uses: actions/checkout@v4 - uses: ./.github/actions/pnpm-setup - with: - working-directory: ${{ env.working-directory }} - run: pnpm test:turbo diff --git a/.github/workflows/license-frontend.yml b/.github/workflows/license-frontend.yml index 5543e892f..1c1b7b2e1 100644 --- a/.github/workflows/license-frontend.yml +++ b/.github/workflows/license-frontend.yml @@ -15,9 +15,6 @@ on: pull_request: merge_group: -env: - working-directory: frontend - jobs: license_finder: runs-on: ubuntu-latest @@ -56,9 +53,9 @@ jobs: .github/workflows/license-frontend.yml frontend/config/dependency_decisions.yml frontend/config/license_finder.yml - frontend/package.json - frontend/pnpm-lock.yaml - key: license-frontend-${{ runner.os }}-${{ hashFiles('.github/workflows/license-frontend.yml', 'frontend/config/dependency_decisions.yml', 'frontend/config/license_finder.yml', 'frontend/package.json', 'frontend/pnpm-lock.yaml') }} + package.json + pnpm-lock.yaml + key: license-frontend-${{ runner.os }}-${{ hashFiles('.github/workflows/license-frontend.yml', 'frontend/config/dependency_decisions.yml', 'frontend/config/license_finder.yml', 'package.json', 'pnpm-lock.yaml') }} - name: Determine if files changed id: determine run: | @@ -69,8 +66,6 @@ jobs: fi - uses: ./.github/actions/pnpm-setup if: steps.determine.outputs.files_changed == 'true' - with: - working-directory: ${{ env.working-directory }} - uses: ruby/setup-ruby@v1 if: steps.determine.outputs.files_changed == 'true' with: @@ -81,7 +76,6 @@ jobs: - name: Run License Finder if: steps.determine.outputs.files_changed == 'true' run: license_finder - working-directory: ${{ env.working-directory }} # Commit the License Finder report as docs/packages-license.md - name: Generate license report @@ -89,7 +83,7 @@ jobs: steps.fork-check.outputs.is_fork != 'true' && steps.determine.outputs.files_changed == 'true' && github.ref_name != github.event.repository.default_branch - && github.event_name != 'merge_group' + && github.event_name != 'merge_group' run: | mkdir -p "$(dirname "$LICENSE_REPORT")" license_finder report --format=markdown | tail -n +2 > "$LICENSE_REPORT" @@ -101,7 +95,7 @@ jobs: steps.fork-check.outputs.is_fork != 'true' && steps.determine.outputs.files_changed == 'true' && github.ref_name != github.event.repository.default_branch - && github.event_name != 'merge_group' + && github.event_name != 'merge_group' run: | if git diff --quiet; then echo 'No changes to commit' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5586afdba..206f8a179 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,6 @@ on: push: branches: - main -env: - working-directory: frontend concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -30,17 +28,10 @@ jobs: - uses: actions/checkout@v4 with: token: ${{ steps.app-token.outputs.token }} - sparse-checkout: | - .github - ${{ env.working-directory }} - uses: ./.github/actions/pnpm-setup - with: - working-directory: ${{ env.working-directory }} - - name: Create Release Pull Request or Publish to npm uses: changesets/action@v1.4.9 with: - cwd: ${{ env.working-directory }} publish: pnpm run release env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} diff --git a/.github/workflows/vercel-deploy-erd-sample.yml b/.github/workflows/vercel-deploy-erd-sample.yml index 544a61eb4..ede822e9c 100644 --- a/.github/workflows/vercel-deploy-erd-sample.yml +++ b/.github/workflows/vercel-deploy-erd-sample.yml @@ -61,18 +61,14 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/pnpm-setup - with: - working-directory: frontend - name: Install Vercel CLI run: pnpm add --global vercel@latest - name: Pull Vercel Enviroment Infomation run: vercel pull --yes --environment=${{ needs.setup-deployment.outputs.environment }} --token=${{ secrets.VERCEL_TOKEN }} - name: Run prepare command run: pnpm build - working-directory: frontend - name: Update index.html content run: pnpm --filter ${{ matrix.apps.name }} update_dist_content - working-directory: frontend - name: Build Project Artifacts run: vercel build ${{ needs.setup-deployment.outputs.environment == 'production' && '--prod' || '' }} - name: Deploy Project Artifacts to Vercel diff --git a/.github/workflows/vercel-deploy.yml b/.github/workflows/vercel-deploy.yml index 9b0c1d8ae..035597ebc 100644 --- a/.github/workflows/vercel-deploy.yml +++ b/.github/workflows/vercel-deploy.yml @@ -57,8 +57,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/pnpm-setup - with: - working-directory: frontend - name: Install Vercel CLI run: pnpm add --global vercel@latest - name: Pull Vercel Enviroment Infomation diff --git a/.gitignore b/.gitignore index 3c3629e64..c98e33194 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +.turbo diff --git a/frontend/.node-version b/.node-version similarity index 100% rename from frontend/.node-version rename to .node-version diff --git a/frontend/.syncpackrc b/.syncpackrc similarity index 100% rename from frontend/.syncpackrc rename to .syncpackrc diff --git a/frontend/turbo.json b/turbo.json similarity index 100% rename from frontend/turbo.json rename to turbo.json