Skip to content

Commit

Permalink
chore(semver): 🛠 build before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Oct 29, 2021
1 parent 4366074 commit b8c4749
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ jobs:
- uses: ./.github/actions/setup
- name: Setup git user to "🤖 JSCutlery Bot"
run: git config user.email "-" && git config user.name "🤖 JSCutlery Bot"
- name: Build
# Build before versioning because the version executor point to the distribution bundle.
run: yarn nx affected --base=last-release --target=build
- name: Version
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# Build before versioning because the version executor point to the distribution bundle.
run: yarn nx affected --base=last-release --target=build
# Use npx instead of yarn because yarn automagically sets NPM_* environment variables
# like NPM_CONFIG_REGISTRY so npm publish ends up ignoring the .npmrc file
# which is set up by `setup-node` action.
Expand Down

0 comments on commit b8c4749

Please sign in to comment.