From 9ef9c39fde472ceeb57c642eda1b3ddc7b93eb61 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Wed, 15 Jan 2025 22:00:41 -0600 Subject: [PATCH] convert into single meta on PR --- .github/workflows/covector-preview.yml | 39 ----------------------- .github/workflows/covector-status.yml | 19 ------------ .github/workflows/meta.yml | 43 ++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 58 deletions(-) delete mode 100644 .github/workflows/covector-preview.yml delete mode 100644 .github/workflows/covector-status.yml create mode 100644 .github/workflows/meta.yml diff --git a/.github/workflows/covector-preview.yml b/.github/workflows/covector-preview.yml deleted file mode 100644 index 0badfe0f..00000000 --- a/.github/workflows/covector-preview.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: covector preview -on: [pull_request] - -permissions: - id-token: write - -jobs: - covector: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # required for use of git history - - uses: actions/setup-node@v4 - with: - registry-url: "https://registry.npmjs.org" - - run: npm config list - - uses: volta-cli/action@v4 - - name: Install Node.js dependencies - run: npm ci - - - name: covector status - uses: jbolda/covector/packages/action@covector-v0 - id: covector-status - with: - command: "status" - - - name: covector preview - uses: jbolda/covector/packages/action@covector-v0 - id: covector - if: ${{ steps.covector-status.outputs.status != 'No changes.' }} - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - with: - token: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN }} - command: "preview" - identifier: "branch" - previewVersion: "sha" diff --git a/.github/workflows/covector-status.yml b/.github/workflows/covector-status.yml deleted file mode 100644 index 1549c952..00000000 --- a/.github/workflows/covector-status.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: covector status -on: [pull_request] - -jobs: - covector: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 # required for use of git history - - uses: volta-cli/action@v4 - - name: covector status - uses: jbolda/covector/packages/action@covector-v0 - id: covector - with: - token: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN }} - command: "status" - comment: true diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml new file mode 100644 index 00000000..23c7df2b --- /dev/null +++ b/.github/workflows/meta.yml @@ -0,0 +1,43 @@ +name: meta +on: [pull_request] + +jobs: + covector: + name: Covector Status + runs-on: ubuntu-latest + outputs: + status: ${{ steps.covector.outputs.status }} + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # required for use of git history + - uses: volta-cli/action@v4 + - name: covector status + uses: jbolda/covector/packages/action@covector-v0 + id: covector + with: + token: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN }} + command: "status" + comment: true + - run: echo ${{ steps.covector.outputs.status }} + + preview: + name: Publish Preview Package + needs: [covector] + if: ${{ needs.covector.outputs.status != 'No changes.' }} + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # required for use of git history + - uses: volta-cli/action@v4 + + - name: Install Node.js dependencies + run: npm ci + - name: Build All + run: npm run build + + - name: Publish Preview Versions + run: echo ${{ needs.covector.outputs.status }}