Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Reorder pipeline #33

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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