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 }}