Skip to content

Commit

Permalink
fix: create ephemeral branch for nightly releases
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Jan 24, 2024
1 parent c485f08 commit d6fcc48
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
# Ref: https://github.com/lerna/lerna/issues/2532
fetch-depth: 0
# We do not want to push these changes upstream
detach: true
-
name: Configure git
run: |
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name ${{ github.actor }}
# Create ephemeral branch that won't be merged upstream
git checkout -b "nightly-${{ inputs.branch || 'develop' }}"
-
name: Install Dagger
uses: dagger/dagger-for-github@v3
Expand All @@ -315,3 +315,6 @@ jobs:
run: |
npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
npm run publish:nightly -- --yes
-
name: Cleanup nightly branch
run: git branch -d "nightly-${{ inputs.branch || 'develop' }}"

0 comments on commit d6fcc48

Please sign in to comment.