From 8a1d044b27d542cd7df4233b9b2f4b8631a84ef4 Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Mon, 18 Nov 2024 17:02:26 +0500 Subject: [PATCH] ci: manually publish the package --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f2bf1f3..fd74170a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,12 @@ name: Release Package on: + workflow_dispatch: + inputs: + version: + description: 'release: major|minor|patch' + required: true + default: 'patch' push: branches: - master @@ -24,7 +30,6 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - cat ~/.npmrc | sed 's/:_authToken=.*/:_authToken=[SECURED]/' - name: Install pnpm run: npm install -g pnpm @@ -36,11 +41,9 @@ jobs: run: | git config --global user.name "${{ secrets.GIT_USER }}" git config --global user.email "${{ secrets.GIT_EMAIL }}" - echo "Configured Git user.name: $(git config --global user.name)" - echo "Configured Git user.email: $(git config --global user.email)" - name: Release with release-it - run: npx --ignore-existing release-it + run: npx release-it --increment ${{ github.event.inputs.version }} env: GIT_AUTHOR_NAME: ${{ secrets.GIT_USER }} GIT_AUTHOR_EMAIL: ${{ secrets.GIT_EMAIL }}