Skip to content

Commit

Permalink
Changes to the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore7snehil committed Dec 6, 2024
1 parent 3e9a25e commit 4f58b3e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-auth0-acul-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name: Create npm and GitHub Release For auth0-acul-js
on:
# Trigger this workflow when a branch like "release/auth0-acul-js/v*" is pushed
push:
branches:
- 'release/auth0-acul-js/v*'

pull_request:
branches:
- 'release/auth0-acul-js/v*' # Ensure the branch matches this pattern
types:
- open
- closed # Trigger when a PR is closed (merged)
workflow_dispatch:
permissions:
contents: write
Expand All @@ -19,6 +20,7 @@ permissions:

jobs:
release:
if: (github.event.pull_request.merged == true) && startsWith(github.event.pull_request.base.ref, 'release/auth0-acul-js/v')
uses: ./.github/workflows/npm-release.yml
with:
node-version: 18
Expand Down

0 comments on commit 4f58b3e

Please sign in to comment.