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