Skip to content

Commit

Permalink
feat(github): Allow release from non-main branches (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-langchain authored Jan 29, 2025
1 parent ed70ef8 commit b832f1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,18 @@ on:
paths:
- "js/package.json"
workflow_dispatch:
inputs:
dangerous-non-main-release:
required: false
type: boolean
default: false
description: "Release from a non-main branch (danger!)"


jobs:
if_release:
# Disallow publishing from branches that aren't `main`.
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || inputs.dangerous-non-main-release
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit b832f1f

Please sign in to comment.