Skip to content

Commit 0180308

Browse files
chore: be able to release not only from main
1 parent 559a69f commit 0180308

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/actions/release/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ runs:
2222
NODE_AUTH_TOKEN: ${{ inputs.npm_token }}
2323
GITHUB_TOKEN: ${{ inputs.github_token }}
2424
shell: bash
25-
run: pnpx nx affected --base=last-release --target=${{ inputs.release_target }} --parallel=1
25+
run: pnpx nx affected --base=last-release --target=${{ inputs.release_target }} --parallel=1 --baseBranch=${{ github.ref_name }}
2626

2727
- name: Tag last-release
28+
if: github.ref == 'refs/heads/main'
2829
shell: bash
2930
run: git tag -f last-release
3031

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
release:
2727
runs-on: ubuntu-latest
2828

29-
if: github.ref == 'refs/heads/main'
30-
3129
needs: [test]
3230

3331
steps:
3432
- uses: actions/checkout@v3
33+
with:
34+
fetch-depth: 0
3535
- name: Setup
3636
uses: ./.github/actions/setup
3737

.github/workflows/release_minor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ jobs:
2626
release:
2727
runs-on: ubuntu-latest
2828

29-
if: github.ref == 'refs/heads/main'
30-
3129
needs: [test]
3230

3331
steps:
3432
- uses: actions/checkout@v3
33+
with:
34+
fetch-depth: 0
3535
- name: Setup
3636
uses: ./.github/actions/setup
3737

0 commit comments

Comments
 (0)