-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 Trigger package release test workflow after publishing
- Added `released_package_test.yml` workflow to verify the released package. - Modified `release.yml` to trigger `released_package_test.yml` via API when a release is created. - Passes the published package version and a delay parameter to the test workflow. - Ensures the CLI package exits correctly using `npx @liam-hq/cli@<version> --version`.
- Loading branch information
1 parent
e163b46
commit 319f2ad
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "released package test" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
delay_seconds: | ||
description: "Delay in seconds before execution" | ||
required: false | ||
default: 0 | ||
type: number | ||
version: | ||
description: "Version to test" | ||
required: true | ||
type: string | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: sleep | ||
run: | | ||
echo "Starting after ${{ github.event.inputs.delay_seconds }} seconds" | ||
sleep ${{ github.event.inputs.delay_seconds }} | ||
- name: check @liam-hq/cli exit code | ||
run: | | ||
version="${{ github.event.inputs.version }}" | ||
docker run --rm -it node:20-bullseye npx --yes @liam-hq/cli@${version} --version |