You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/prod-release.yml
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,6 @@ on:
14
14
description: 'NPM distribution tag'
15
15
required: false
16
16
default: 'latest'
17
-
branch:
18
-
description: 'The branch to release from'
19
-
required: false
20
-
default: 'master'
21
17
22
18
env:
23
19
NODE_OPTIONS: "--max-old-space-size=4096"
@@ -32,6 +28,12 @@ jobs:
32
28
runs-on: ubuntu-latest
33
29
needs: [pre-release-ci]
34
30
steps:
31
+
- name: Require a branch
32
+
if: github.ref_type != 'branch'
33
+
run: |
34
+
echo "::error::Dispatch this workflow from a branch (got ${{ github.ref_type }} '${{ github.ref_name }}'). To release a specific commit, point a branch at it first."
0 commit comments