From da50542de12f7d432983378316c53a2a8f341834 Mon Sep 17 00:00:00 2001 From: Marc Bernard <59966492+mbtools@users.noreply.github.com> Date: Sun, 28 Apr 2024 11:52:38 +0200 Subject: [PATCH] chore: limit workflows to verdaccio repo (#4599) --- .github/workflows/ci-windows.yml | 4 ---- .github/workflows/ci.yml | 2 +- .github/workflows/docker-publish.yml | 1 + .github/workflows/static-data.yml | 1 + .github/workflows/ui-components.yml | 1 + .github/workflows/website.yml | 1 + 6 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index e6dc1f21b..0435bfc5c 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -29,10 +29,6 @@ jobs: run: | mkdir ~/.pnpm-store pnpm config set store-dir ~/.pnpm-store - - name: set store - run: | - mkdir ~/.pnpm-store - pnpm config set store-dir ~/.pnpm-store - name: Install run: pnpm install --registry http://localhost:4873 - name: Cache .pnpm-store diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 887b03d13..2fc5e2339 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,7 +138,7 @@ jobs: needs: [test] runs-on: ubuntu-latest name: synchronize translations - if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch' + if: (github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio') || github.event_name == 'workflow_dispatch' steps: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3 - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3 diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index b4f5c9fc4..2f8950d9e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -22,6 +22,7 @@ permissions: jobs: docker: runs-on: ubuntu-latest + if: github.repository == 'verdaccio/verdaccio' steps: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3 - uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # tag=v1 diff --git a/.github/workflows/static-data.yml b/.github/workflows/static-data.yml index 33cd6d703..ec61b497a 100644 --- a/.github/workflows/static-data.yml +++ b/.github/workflows/static-data.yml @@ -18,6 +18,7 @@ jobs: prepare: name: Run script runs-on: ubuntu-latest + if: github.repository == 'verdaccio/verdaccio' steps: - uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v3 with: diff --git a/.github/workflows/ui-components.yml b/.github/workflows/ui-components.yml index 9ad0634c4..06e84a4d2 100644 --- a/.github/workflows/ui-components.yml +++ b/.github/workflows/ui-components.yml @@ -19,6 +19,7 @@ jobs: pull-requests: write # to comment on pull-requests runs-on: ubuntu-latest + if: github.repository == 'verdaccio/verdaccio' env: NODE_OPTIONS: --max_old_space_size=4096 steps: diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 232c2c84b..ca209ea2a 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -16,6 +16,7 @@ jobs: pull-requests: write # to comment on pull-requests runs-on: ubuntu-latest + if: github.repository == 'verdaccio/verdaccio' name: setup verdaccio services: verdaccio: