Skip to content

Commit

Permalink
add release config for nx-core
Browse files Browse the repository at this point in the history
  • Loading branch information
manjarres09 committed Jan 19, 2025
1 parent 37160c2 commit 4981b63
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
uses: nrwl/nx-set-shas@v4
with:
main-branch-name: ${{ github.base_ref }}
- name: Detect package manager
Expand Down Expand Up @@ -79,15 +79,13 @@ jobs:
npm ci
fi
- run: |
npx nx run affected -t lint
npx nx run affected -t test --ci --code-coverage
npx nx run affected -t build
npx nx affected -t lint build
- name: Release
if: ${{ success() && (github.event_name != 'pull_request' || github.event.action == 'closed' && github.event.pull_request.merged == true) }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx nx run affected -t release
npx nx affected -t release
- name: Finish Release
run: npx semantic-release-plus

0 comments on commit 4981b63

Please sign in to comment.