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-7Lines changed: 10 additions & 7 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"
@@ -35,6 +31,12 @@ jobs:
35
31
needs: [pre-release-ci]
36
32
environment: release
37
33
steps:
34
+
- name: Require a branch
35
+
if: github.ref_type != 'branch'
36
+
run: |
37
+
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