Skip to content
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
27 changes: 14 additions & 13 deletions .github/workflows/release-kit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ jobs:
with:
node-version: "24"

- name: Install Dependencies
run: npm ci

- name: Run Workspace Tests
run: npm test --workspace=${{ inputs.target_kit }}
- name: Install Dependencies & Run Tests
working-directory: ${{ inputs.target_kit }}
run: |
npm ci
npm test

# =========================================================
# 2. RELEASE JOB (Elevated Permissions: Write)
Expand All @@ -76,14 +76,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # zizmor: ignore[artipacked]
with:
ref: kits

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "24"
registry-url: "https://wombat-dressing-room.appspot.com"
always-auth: false

- name: Configure Git User
if: ${{ !inputs.dry_run }}
Expand Down Expand Up @@ -142,11 +141,10 @@ jobs:
echo "target_tag=$TARGET_TAG" >> $GITHUB_OUTPUT

- name: Install Dependencies & Build
env:
TARGET_KIT: ${{ inputs.target_kit }}
working-directory: ${{ inputs.target_kit }}
run: |
npm ci
npm run build --workspace=$TARGET_KIT
npm ci --registry=https://registry.npmjs.org
npm run build

- name: Bump Version (Clear CHANGELOG on Stable Release Only)
id: versioning
Expand Down Expand Up @@ -215,7 +213,9 @@ jobs:

- name: Push Version Commit & Tags to Branch
if: ${{ !inputs.dry_run }}
run: git push origin kits --follow-tags
env:
REF_NAME: ${{ github.ref_name }}
run: git push origin "$REF_NAME" --follow-tags

- name: Publish to NPM
# zizmor: ignore[use-trusted-publishing]
Expand Down Expand Up @@ -251,6 +251,7 @@ jobs:
VERSION: ${{ steps.versioning.outputs.version }}
IS_PRERELEASE: ${{ inputs.is_prerelease }}
NOTES: ${{ steps.changelog.outputs.notes }}
REF_NAME: ${{ github.ref_name }}
run: |
PRERELEASE_FLAG=""
if [ "$IS_PRERELEASE" = "true" ]; then
Expand All @@ -260,5 +261,5 @@ jobs:
gh release create "$TAG_NAME" \
--title "$PKG_NAME v$VERSION" \
--notes "$NOTES" \
--target kits \
--target "$REF_NAME" \
$PRERELEASE_FLAG
Loading