Skip to content

Commit

Permalink
feat: add distTag to inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
yue4u committed Sep 26, 2023
1 parent ffc44d6 commit 42d5348
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
version:
description: 'Version to release'
required: true
type: string
distTag:
description: 'Used as lerna publish --dist-tag'
default: 'latest'
required: true
type: string

jobs:
fetch:
Expand Down Expand Up @@ -49,7 +55,7 @@ jobs:
- name: Set package version
run: |
yarn lerna version ${{ github.event.inputs.version }} --exact --no-push --yes
yarn lerna publish from-git --dist-tag latest
yarn lerna publish from-git --dist-tag ${{ github.event.inputs.distTag }}
env:
NPM_CONFIG_PROVENANCE: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 42d5348

Please sign in to comment.