Skip to content

Commit

Permalink
ci(gh-workflow): teach nx about branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw committed Aug 10, 2023
1 parent 6933012 commit c19f2ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
name: Run unit tests
env:
NX_BRANCH: ${{ github.event.number || github.ref_name }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -80,6 +82,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
name: Release packages
env:
NX_BRANCH: ${{ github.event.number || github.ref_name }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Generate token
Expand Down

0 comments on commit c19f2ba

Please sign in to comment.