Skip to content

Commit 91ddced

Browse files
authored
chore(NODE-5344): add alpha skeleton for testing (#3711)
1 parent 2b83ea4 commit 91ddced

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release-alpha.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
# Allows us to manually trigger an alpha
3+
# workflow_dispatch can be given an alternative 'ref' to release from a feature branch
4+
workflow_dispatch:
5+
inputs:
6+
alphaVersion:
7+
description: 'The semver version string. MUST end in -alpha.#'
8+
required: true
9+
type: string
10+
wetRun:
11+
description: 'If true, will publish to npm'
12+
required: true
13+
type: boolean
14+
15+
name: release-alpha
16+
17+
jobs:
18+
release-nightly:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- run: |
22+
[[ "${{ inputs.alphaVersion }}" =~ '-alpha(\.(0|[1-9][0-9]+))?$' ]] || { echo "Invalid alphaVersion string" ; exit 1; }
23+
[[ "${{ inputs.wetRun }}" == "true" || "${{ inputs.wetRun }}" == "false" ]] || { echo "boolean wetRun must be provided" ; exit 1; }
24+
shell: bash
25+
- run: |
26+
echo "${{ inputs.alphaVersion }}"
27+
echo "${{ inputs.wetRun }}"
28+
shell: bash

0 commit comments

Comments
 (0)