Skip to content

Commit dbe6bc0

Browse files
authored
Merge branch 'main' into feat-stencil-bundle
2 parents 4e6525b + 9d55acc commit dbe6bc0

2 files changed

Lines changed: 30 additions & 23 deletions

File tree

.github/workflows/03-publish-packages.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020
publish:
21-
name: Publish latest package versions to GitHub Packages
21+
name: Publish (or dry-run) latest package versions to npmjs.com registry
2222
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
2323
permissions:
2424
id-token: write
@@ -39,7 +39,13 @@ jobs:
3939
name: db-ux-outputs
4040
path: build-outputs
4141

42+
- name: 📰 Dry Run PNPM Pack
43+
if: ${{ github.event_name != 'release' }}
44+
run: |
45+
pnpm pack --recursive --filter "@db-ux/*" --config.ignore-scripts=true --dry-run --json
46+
4247
- name: 📰 Publish to NPM Registries
48+
if: ${{ github.event_name == 'release' }}
4349
run: |
4450
node scripts/github/publish-npm.js
4551
env:

.github/workflows/default.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -408,27 +408,6 @@ jobs:
408408
IS_RELEASE: ${{ github.event_name == 'release' }}
409409
IS_CHANGESET_RELEASE: ${{ needs.init.outputs.isChangesetRelease }}
410410
run: |
411-
echo "resultBuildStorybookComposition: $resultBuildStorybookComposition"
412-
echo "resultBuildStorybookAngular: $resultBuildStorybookAngular"
413-
echo "resultBuildStorybookReact: $resultBuildStorybookReact"
414-
echo "resultBuildStorybookVue: $resultBuildStorybookVue"
415-
echo "resultBuildShowcaseStencil: $resultBuildShowcaseStencil"
416-
echo "resultBuildShowcaseAngular: $resultBuildShowcaseAngular"
417-
echo "resultBuildShowcaseAngularSSR: $resultBuildShowcaseAngularSSR"
418-
echo "resultBuildShowcaseReact: $resultBuildShowcaseReact"
419-
echo "resultBuildShowcaseNext: $resultBuildShowcaseNext"
420-
echo "resultBuildShowcaseVue: $resultBuildShowcaseVue"
421-
echo "resultBuildShowcaseNuxt: $resultBuildShowcaseNuxt"
422-
echo "resultBuildShowcasePatternhub: $resultBuildShowcasePatternhub"
423-
echo "resultBuildOutputs: $resultBuildOutputs"
424-
echo "resultTestPackages: $resultTestPackages"
425-
echo "resultTestFoundations: $resultTestFoundations"
426-
echo "resultTestShowcaseStencil: $resultTestShowcaseStencil"
427-
echo "resultTestShowcaseAngular: $resultTestShowcaseAngular"
428-
echo "resultTestShowcaseReact: $resultTestShowcaseReact"
429-
echo "resultTestShowcaseVue: $resultTestShowcaseVue"
430-
echo "resultTestShowcasePatternhub: $resultTestShowcasePatternhub"
431-
echo "resultTestScreenReader: $resultTestScreenReader"
432411
if [[ $IS_CHANGESET_RELEASE == "true" ]]; then
433412
echo "🎉 Changeset release PR - skipping checks."
434413
exit 0
@@ -457,6 +436,28 @@ jobs:
457436
resultTestScreenReader="${{ needs.test-screen-reader.result }}"
458437
resultTestFigmaCodeConnect="${{ needs.test-figma-code-connect.result }}"
459438
439+
echo "resultBuildStorybookComposition: $resultBuildStorybookComposition"
440+
echo "resultBuildStorybookAngular: $resultBuildStorybookAngular"
441+
echo "resultBuildStorybookReact: $resultBuildStorybookReact"
442+
echo "resultBuildStorybookVue: $resultBuildStorybookVue"
443+
echo "resultBuildShowcaseStencil: $resultBuildShowcaseStencil"
444+
echo "resultBuildShowcaseAngular: $resultBuildShowcaseAngular"
445+
echo "resultBuildShowcaseAngularSSR: $resultBuildShowcaseAngularSSR"
446+
echo "resultBuildShowcaseReact: $resultBuildShowcaseReact"
447+
echo "resultBuildShowcaseNext: $resultBuildShowcaseNext"
448+
echo "resultBuildShowcaseVue: $resultBuildShowcaseVue"
449+
echo "resultBuildShowcaseNuxt: $resultBuildShowcaseNuxt"
450+
echo "resultBuildShowcasePatternhub: $resultBuildShowcasePatternhub"
451+
echo "resultBuildOutputs: $resultBuildOutputs"
452+
echo "resultTestPackages: $resultTestPackages"
453+
echo "resultTestFoundations: $resultTestFoundations"
454+
echo "resultTestShowcaseStencil: $resultTestShowcaseStencil"
455+
echo "resultTestShowcaseAngular: $resultTestShowcaseAngular"
456+
echo "resultTestShowcaseReact: $resultTestShowcaseReact"
457+
echo "resultTestShowcaseVue: $resultTestShowcaseVue"
458+
echo "resultTestShowcasePatternhub: $resultTestShowcasePatternhub"
459+
echo "resultTestScreenReader: $resultTestScreenReader"
460+
460461
if [[ $resultBuildStorybookComposition == "success" ]] && \
461462
[[ $resultBuildStorybookAngular == "success" ]] && \
462463
[[ $resultBuildStorybookReact == "success" ]] && \
@@ -543,7 +544,7 @@ jobs:
543544
uses: ./.github/workflows/03-preview-url-pr-description.yml
544545

545546
publishpackages:
546-
if: ${{ github.event_name == 'release' }}
547+
if: ${{ !cancelled() && needs.checks-done.result == 'success' }}
547548
uses: ./.github/workflows/03-publish-packages.yml
548549
needs: [init, checks-done, build-outputs]
549550
secrets: inherit

0 commit comments

Comments
 (0)