Skip to content

chore(NODE-5344): add alpha skeleton for testing #3711

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 1 commit into from
Jun 7, 2023
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
28 changes: 28 additions & 0 deletions .github/workflows/release-alpha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
# Allows us to manually trigger an alpha
# workflow_dispatch can be given an alternative 'ref' to release from a feature branch
workflow_dispatch:
inputs:
alphaVersion:
description: 'The semver version string. MUST end in -alpha.#'
required: true
type: string
wetRun:
description: 'If true, will publish to npm'
required: true
type: boolean

name: release-alpha

jobs:
release-nightly:
runs-on: ubuntu-latest
steps:
- run: |
[[ "${{ inputs.alphaVersion }}" =~ '-alpha(\.(0|[1-9][0-9]+))?$' ]] || { echo "Invalid alphaVersion string" ; exit 1; }
[[ "${{ inputs.wetRun }}" == "true" || "${{ inputs.wetRun }}" == "false" ]] || { echo "boolean wetRun must be provided" ; exit 1; }
shell: bash
- run: |
echo "${{ inputs.alphaVersion }}"
echo "${{ inputs.wetRun }}"
shell: bash