From 225bce78bc44058e43fd9c80de9a6ac77866ce6f Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Fri, 13 Dec 2024 02:46:54 -0800 Subject: [PATCH] Refactor installation workflow to use withstudiocms/automations --- .github/actions/install/action.yml | 18 ------------------ .github/workflows/ci-pr-i18n-changeset.yml | 2 +- .github/workflows/ci-pr-lunaria-overview.yml | 2 +- .github/workflows/ci-pr-snapshots.yml | 2 +- .github/workflows/ci-push-main.yml | 6 +++--- .github/workflows/ci-report-lunaria.yml | 4 ++-- .github/workflows/lunaria-build.yml | 2 +- 7 files changed, 9 insertions(+), 27 deletions(-) delete mode 100644 .github/actions/install/action.yml diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml deleted file mode 100644 index 943a1e426..000000000 --- a/.github/actions/install/action.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Install Tools & Dependencies -description: Installs pnpm, Node.js & package dependencies - -runs: - using: composite - steps: - - name: Setup pnpm (corepack enabled) - uses: pnpm/action-setup@v3 - - - name: Setup Node.js 20.x - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 - with: - node-version-file: '.node-version' - cache: 'pnpm' - - - name: Install Dependencies - run: pnpm ci:install - shell: bash \ No newline at end of file diff --git a/.github/workflows/ci-pr-i18n-changeset.yml b/.github/workflows/ci-pr-i18n-changeset.yml index a4e01cab9..568c54d3e 100644 --- a/.github/workflows/ci-pr-i18n-changeset.yml +++ b/.github/workflows/ci-pr-i18n-changeset.yml @@ -19,7 +19,7 @@ jobs: token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - name: Install Tools & Dependencies - uses: ./.github/actions/install + uses: withstudiocms/automations/.github/actions/install - name: Create Translation Changesets run: pnpm ci:translations:changeset diff --git a/.github/workflows/ci-pr-lunaria-overview.yml b/.github/workflows/ci-pr-lunaria-overview.yml index dfbb09f53..17c0fa75c 100644 --- a/.github/workflows/ci-pr-lunaria-overview.yml +++ b/.github/workflows/ci-pr-lunaria-overview.yml @@ -21,7 +21,7 @@ jobs: token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - name: Install Tools & Dependencies - uses: ./.github/actions/install + uses: withstudiocms/automations/.github/actions/install - name: Generate Lunaria Overview uses: lunariajs/action@astro-docs diff --git a/.github/workflows/ci-pr-snapshots.yml b/.github/workflows/ci-pr-snapshots.yml index bd19cf47b..41d17c731 100644 --- a/.github/workflows/ci-pr-snapshots.yml +++ b/.github/workflows/ci-pr-snapshots.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Install Tools & Dependencies - uses: ./.github/actions/install + uses: withstudiocms/automations/.github/actions/install - name: Publish packages run: pnpm ci:snapshot diff --git a/.github/workflows/ci-push-main.yml b/.github/workflows/ci-push-main.yml index 960e4acf8..b870b036b 100644 --- a/.github/workflows/ci-push-main.yml +++ b/.github/workflows/ci-push-main.yml @@ -36,7 +36,7 @@ jobs: token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - name: Install Tools & Dependencies - uses: ./.github/actions/install + uses: withstudiocms/automations/.github/actions/install - name: Format code run: pnpm run lint:fix @@ -81,7 +81,7 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Install Tools & Dependencies - uses: ./.github/actions/install + uses: withstudiocms/automations/.github/actions/install - name: Create Release Pull Request or Publish to npm id: changesets @@ -126,7 +126,7 @@ jobs: # token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} # - name: Install Tools & Dependencies -# uses: ./.github/actions/install +# uses: withstudiocms/automations/.github/actions/install # - name: Build Lunaria Overview # run: pnpm ci:lunaria:build diff --git a/.github/workflows/ci-report-lunaria.yml b/.github/workflows/ci-report-lunaria.yml index 47edfe425..64b0b67c3 100644 --- a/.github/workflows/ci-report-lunaria.yml +++ b/.github/workflows/ci-report-lunaria.yml @@ -17,8 +17,8 @@ jobs: fetch-depth: 0 - name: Install Tools & Dependencies - uses: ./.github/actions/install - + uses: withstudiocms/automations/.github/actions/install + - id: message name: Format Discord message run: pnpm ci:lunaria:report diff --git a/.github/workflows/lunaria-build.yml b/.github/workflows/lunaria-build.yml index 2e43d57e1..caf7d851c 100644 --- a/.github/workflows/lunaria-build.yml +++ b/.github/workflows/lunaria-build.yml @@ -19,7 +19,7 @@ jobs: token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - name: Install Tools & Dependencies - uses: ./.github/actions/install + uses: withstudiocms/automations/.github/actions/install - name: Build Lunaria Overview run: pnpm ci:lunaria:build