From 3fa93bd9031e5bb99054f0e7bc2b91a5629301f7 Mon Sep 17 00:00:00 2001 From: Evo <85353424+EvolutionX-10@users.noreply.github.com> Date: Fri, 12 Aug 2022 11:01:02 +0530 Subject: [PATCH] ci: update again --- .github/workflows/publish.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d30afc9..e836ebc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,14 +6,6 @@ on: prNumber: description: The number of the PR that is being deployed required: true - version: - type: choice - description: The version that cli should be bumped to - options: - - major - - minor - - patch - required: true jobs: Publish: @@ -43,7 +35,7 @@ jobs: run: | TAG=$(echo 'pr-${{ github.event.inputs.prNumber }}') VERSION=$(echo '${{github.event.inputs.version}}') - npm version ${VERSION} --preid "${TAG}.$(git rev-parse --verify --short HEAD)" --git-tag-version=false + npm version premajor --preid "${TAG}.$(git rev-parse --verify --short HEAD)" --git-tag-version=false npm publish --tag ${TAG} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}