Skip to content

Commit d04cd1e

Browse files
committed
upload all artifacts in 1 job
1 parent 2349b7e commit d04cd1e

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

.github/workflows/release-feature-branch.yaml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,17 @@ jobs:
7474
- name: Pack
7575
run: pnpm pack:artifact
7676
- uses: actions/upload-artifact@v4
77-
with: { name: drizzle-orm, path: drizzle-orm/package.tgz }
78-
- uses: actions/upload-artifact@v4
79-
with: { name: drizzle-kit, path: drizzle-kit/package.tgz }
80-
- uses: actions/upload-artifact@v4
81-
with: { name: drizzle-zod, path: drizzle-zod/package.tgz }
82-
- uses: actions/upload-artifact@v4
83-
with: { name: drizzle-seed, path: drizzle-seed/package.tgz }
84-
- uses: actions/upload-artifact@v4
85-
with: { name: drizzle-typebox, path: drizzle-typebox/package.tgz }
86-
- uses: actions/upload-artifact@v4
87-
with: { name: drizzle-valibot, path: drizzle-valibot/package.tgz }
88-
- uses: actions/upload-artifact@v4
89-
with: { name: drizzle-arktype, path: drizzle-arktype/package.tgz }
90-
- uses: actions/upload-artifact@v4
91-
with: { name: eslint-plugin-drizzle, path: eslint-plugin-drizzle/package.tgz }
77+
with:
78+
name: packages
79+
path: |
80+
drizzle-orm/package.tgz
81+
drizzle-kit/package.tgz
82+
drizzle-zod/package.tgz
83+
drizzle-seed/package.tgz
84+
drizzle-typebox/package.tgz
85+
drizzle-valibot/package.tgz
86+
drizzle-arktype/package.tgz
87+
eslint-plugin-drizzle/package.tgz
9288
9389
# Tiny marker so other jobs can wait without failing
9490
- name: Upload build-ready marker
@@ -324,7 +320,7 @@ jobs:
324320
path: ./artifacts
325321
- name: Run @arethetypeswrong/cli
326322
working-directory: ${{ matrix.package }}
327-
run: bun --bun run ../attw-fork/src/run.ts ../artifacts/package.tgz
323+
run: bun --bun run ../attw-fork/src/run.ts ../artifacts/${{ matrix.package }}/package.tgz
328324

329325
attw-orm:
330326
needs: [prepare]
@@ -367,14 +363,14 @@ jobs:
367363
- name: Download package tarball
368364
uses: actions/download-artifact@v4
369365
with:
370-
name: ${{ matrix.package }}
366+
name: packages
371367
path: ./artifacts
372368
- name: Check preconditions (from tarball)
373369
id: checks
374370
shell: bash
375371
run: |
376372
set -euxo pipefail
377-
version="$(tar -xOf ./artifacts/package.tgz package/package.json | jq -r .version)"
373+
version="$(tar -xOf ./artifacts/${{ matrix.package }}/package.tgz package/package.json | jq -r .version)"
378374
tag="${{ github.ref_name }}"
379375
380376
is_published="$(npm view ${{ matrix.package }} versions --json | jq -r '.[] | select(. == "'$version'") | . == "'$version'"')"
@@ -391,5 +387,5 @@ jobs:
391387
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
392388
run: |
393389
set -euxo pipefail
394-
npm publish ./artifacts/package.tgz --tag "${{ steps.checks.outputs.tag }}"
390+
npm publish ./artifacts/${{ matrix.package }}/package.tgz --tag "${{ steps.checks.outputs.tag }}"
395391
echo "npm: \`${{ matrix.package }}@${{ steps.checks.outputs.tag }} | ${{ steps.checks.outputs.version }}\`" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)