ci: update again

This commit is contained in:
Evo
2022-08-12 11:01:02 +05:30
committed by GitHub
parent e7c50c4d32
commit 3fa93bd903

View File

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