Skip to content

Revert "Revert "feat: add alpha playwright suite support to the cli" … #1065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 20, 2025
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
24 changes: 14 additions & 10 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ jobs:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
# Extract the dynamic value from the canary label if present
- name: Extract dynamic value from canary label
- name: Extract CANARY_TAG
id: extract-canary
run: |
if [[ "${GITHUB_EVENT_LABEL_NAME}" == canary:* ]]; then
CANARY_TAG="${GITHUB_EVENT_LABEL_NAME#canary:}"
echo "CANARY_TAG=${CANARY_TAG}" >> $GITHUB_ENV
fi
env:
GITHUB_EVENT_LABEL_NAME: ${{ github.event.label.name }}
export LABELS_JSON='${{ toJson(github.event.pull_request.labels) }}'
CANARY_TAG=$(node -e "
const labels = JSON.parse(process.env.LABELS_JSON || '[]');
const canaryLabel = labels.find(label => label.name.startsWith('canary:'));
if (canaryLabel) console.log(canaryLabel.name.split(':')[1]);
")
echo "CANARY_TAG=$CANARY_TAG" >> $GITHUB_ENV
# Ensure that the README is published with the package
- run: rm -f packages/cli/README.md && cp README.md packages/cli
- run: echo "PR_VERSION=0.0.0-pr.${{github.event.pull_request.number}}.$(git rev-parse --short HEAD)" >> $GITHUB_ENV
Expand All @@ -36,10 +37,13 @@ jobs:
# Publish to npm with the additional tag if CANARY_TAG is set
- run: |
npm publish --workspace packages/cli --tag experimental
if [[ -n "${{ env.CANARY_TAG }}" ]]; then
npm dist-tag add checkly@${{ env.PR_VERSION }} ${{ env.CANARY_TAG }}
fi
if [[ -n "$CANARY_TAG" ]]; then
echo "Publishing with additional tag: $CANARY_TAG"
npm dist-tag add checkly@$PR_VERSION $CANARY_TAG
fi
env:
CANARY_TAG: ${{ env.CANARY_TAG }}
PR_VERSION: ${{ env.PR_VERSION }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@v2
with:
Expand Down
Loading
Loading