Skip to content

Commit

Permalink
wip: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
devdigital committed Jan 7, 2024
1 parent 70f1a93 commit f5c177c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ jobs:
run: yarn build
- name: Run tests
run: yarn test
- name: Release
- name: Version
if: github.ref == 'refs/heads/main'
run: |
alias npm=yarn
yarn release
run: yarn nx affected --base=last-release --target=version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Tag last-release
if: github.ref == 'refs/heads/main'
run: |
git tag -f last-release
git push origin last-release --force

0 comments on commit f5c177c

Please sign in to comment.