Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
echo "tag=$INPUT_RELEASE_TAG" >> "$GITHUB_OUTPUT"
fi

- name: Apply release version
env:
RELEASE_TAG: ${{ steps.release.outputs.tag }}
run: npm pkg set "version=$RELEASE_TAG"

- name: Check code
run: npm run lint

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/publish-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
description: Framework branch containing the release templates
required: true
type: string
release_tag:
description: Component tag that provides the package version
required: true
type: string
dry_run:
description: Validate the package without publishing it
required: false
Expand Down Expand Up @@ -40,6 +44,11 @@ jobs:
- name: Install dependencies
run: npm install --package-lock=false

- name: Apply release version
env:
RELEASE_TAG: ${{ inputs.release_tag }}
run: npm pkg set "version=$RELEASE_TAG"

- name: Apply release TypeScript configuration
run: cp framework/templates/component-release/tsconfig.json tsconfig.json

Expand Down
5 changes: 5 additions & 0 deletions src/packages/contracts/.github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- '*'
workflow_dispatch:
inputs:
release_tag:
description: Component tag that provides the package version
required: true
type: string
dry_run:
description: Validate the package without publishing it
required: true
Expand All @@ -21,5 +25,6 @@ jobs:
uses: koala-ts/framework/.github/workflows/publish-component.yml@2.x
with:
framework_ref: 2.x
release_tag: ${{ inputs.release_tag || github.ref_name }}
dry_run: ${{ inputs.dry_run || false }}
secrets: inherit