Skip to content

Commit

Permalink
♻️ Reorder pipeline
Browse files Browse the repository at this point in the history
Reorders the jobs in the pipeline to have both shared workflows at the
start.

+semver: none
  • Loading branch information
connorjs committed Aug 6, 2024
1 parent abd9c3a commit 6641cc5
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 6641cc5

Please sign in to comment.