From 6641cc572b3f2e66a66725444618a39cc66a8697 Mon Sep 17 00:00:00 2001 From: Connor Sullivan Date: Mon, 5 Aug 2024 23:21:58 -0400 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Reorder=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reorders the jobs in the pipeline to have both shared workflows at the start. +semver: none --- .github/workflows/pipeline.yaml | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index 039a6da..2fe9c4b 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -11,6 +11,23 @@ jobs: name: CI Build uses: connorjs/github-workflows/.github/workflows/npm-ci-build~v1.yaml@main + Publish: + name: Publish + needs: + - CiBuild # For version variable + - PipelineTests # Requires passing tests + + uses: connorjs/github-workflows/.github/workflows/npm-publish~v1.yaml@main + with: + npmPackFilename: ${{ needs.CiBuild.outputs.npmPackFilename }} + semVer: ${{ needs.CiBuild.outputs.semVer }} + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + permissions: + contents: write + id-token: write + PipelineTests: name: Test (${{ matrix.node }} | ${{ matrix.platform.os }}) defaults: @@ -90,20 +107,3 @@ jobs: # This _could_ be an issue with css-typed, but could be a test/deps issue. run: | scripts/test.sh foo custom-config-path.config.mjs '-c .config/custom-config-path.config.mjs' - - Publish: - name: Publish - needs: - - CiBuild # For version variable - - PipelineTests # Requires passing tests - - uses: connorjs/github-workflows/.github/workflows/npm-publish~v1.yaml@main - with: - npmPackFilename: ${{ needs.CiBuild.outputs.npmPackFilename }} - semVer: ${{ needs.CiBuild.outputs.semVer }} - secrets: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - permissions: - contents: write - id-token: write