From d7c300c5999d3dba3f6c4c3c5ee6db17b64dfb04 Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Mon, 17 Jul 2023 15:49:31 +0200 Subject: [PATCH] feat(lib): add workflow step to build and tag lib --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bc2b3a0..27f29cc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,19 @@ jobs: cache: 'npm' - run: npm ci + - name: Build library and increment version tag (only on merge) + if: github.event_name != 'pull_request' + shell: bash + run: | + npm run build:lib:prod + npm version patch + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "chore(lib): npm run build:lib:prod" + git push + git push --tags + - name: Get branch name (merge) if: github.event_name != 'pull_request' shell: bash