Version #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Version | |
on: | |
workflow_dispatch: | |
inputs: | |
packages: | |
description: 'Selected packages as comma separated string, e.g. modules/storage-spec,libraries/formatting' | |
type: string | |
required: true | |
version-strategy: | |
type: choice | |
options: | |
- conventional-commits | |
- patch | |
- minor | |
- major | |
- prerelease | |
- prepatch | |
- preminor | |
- premajor | |
default: 'conventional-commits' | |
assignee: | |
description: 'Overrides the default assignee, which is the user to trigger this workflow.' | |
type: string | |
required: false | |
jobs: | |
version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ExodusMovement/actions/setup/lerna@65b395a82884455e8dc0cbc32355d8864f1ec30c | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Prepare | |
run: yarn prepare | |
- name: Version | |
uses: ExodusMovement/lerna-release-action/version@f7bb33dbbd7a57206eea2fcb79d7fcc2a61bcbb9 | |
with: | |
github-token: ${{ secrets.GH_AUTOMATION_PAT }} | |
packages: ${{ inputs.packages }} | |
assignee: ${{ inputs.assignee }} | |
version-strategy: ${{ inputs.version-strategy }} | |
auto-merge: true |