From f5c177c84d1acbc32e9e36107fe161085d617b45 Mon Sep 17 00:00:00 2001 From: devdigital Date: Sun, 7 Jan 2024 13:04:37 +0000 Subject: [PATCH] wip: update workflow --- .github/workflows/ci.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6b8a2d..9e7ac8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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