Skip to content

Commit 6641cc5

Browse files
committed
♻️ Reorder pipeline
Reorders the jobs in the pipeline to have both shared workflows at the start. +semver: none
1 parent abd9c3a commit 6641cc5

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/pipeline.yaml

+17-17
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ jobs:
1111
name: CI Build
1212
uses: connorjs/github-workflows/.github/workflows/npm-ci-build~v1.yaml@main
1313

14+
Publish:
15+
name: Publish
16+
needs:
17+
- CiBuild # For version variable
18+
- PipelineTests # Requires passing tests
19+
20+
uses: connorjs/github-workflows/.github/workflows/npm-publish~v1.yaml@main
21+
with:
22+
npmPackFilename: ${{ needs.CiBuild.outputs.npmPackFilename }}
23+
semVer: ${{ needs.CiBuild.outputs.semVer }}
24+
secrets:
25+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
27+
permissions:
28+
contents: write
29+
id-token: write
30+
1431
PipelineTests:
1532
name: Test (${{ matrix.node }} | ${{ matrix.platform.os }})
1633
defaults:
@@ -90,20 +107,3 @@ jobs:
90107
# This _could_ be an issue with css-typed, but could be a test/deps issue.
91108
run: |
92109
scripts/test.sh foo custom-config-path.config.mjs '-c .config/custom-config-path.config.mjs'
93-
94-
Publish:
95-
name: Publish
96-
needs:
97-
- CiBuild # For version variable
98-
- PipelineTests # Requires passing tests
99-
100-
uses: connorjs/github-workflows/.github/workflows/npm-publish~v1.yaml@main
101-
with:
102-
npmPackFilename: ${{ needs.CiBuild.outputs.npmPackFilename }}
103-
semVer: ${{ needs.CiBuild.outputs.semVer }}
104-
secrets:
105-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
106-
107-
permissions:
108-
contents: write
109-
id-token: write

0 commit comments

Comments
 (0)