Skip to content

Commit

Permalink
Merge pull request #43 from uploadcare/feat/ci-add-options
Browse files Browse the repository at this point in the history
feat(ci): added options for publish
  • Loading branch information
egordidenko authored Aug 6, 2024
2 parents 40a240e + 3946d77 commit 697bb0d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release-manual.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
name: "Release and Publish Manual"

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
environment:
description: 'Choose the versions to publish'
required: true
default: 'minor'
type: choice
options:
- patch
- minor
- major

jobs:
build:
Expand Down Expand Up @@ -33,7 +44,7 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
npx lerna version --conventional-commits --yes
npx lerna version ${{ github.event.inputs.environment }} --conventional-commits --yes
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npx lerna publish from-git --yes

0 comments on commit 697bb0d

Please sign in to comment.