From 03a74d8052a2a2c0826c9b379fd5d616d60f13e3 Mon Sep 17 00:00:00 2001 From: volodymyr Date: Thu, 21 Nov 2024 00:27:11 +0200 Subject: [PATCH] refactor: version auto increment test [WTEL-5567] (https://webitel.atlassian.net/browse/WTEL-5567) --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25a8299..0525226 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,19 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc + # Bump the patch version + - name: Bump patch version + run: npm version patch --no-git-tag-version + + # Commit the version bump + - name: Commit version bump + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + git add package.json package-lock.json + git commit -m "chore: bump patch version [skip ci]" + git push + # Publish to npm - name: Publish to npm run: npm run publish-styleguide