Skip to content

Commit fdf29e3

Browse files
committed
chore: only create git tag in latest
1 parent 71f29e2 commit fdf29e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ jobs:
7171
const packageJson = JSON.parse(fs.readFileSync('./packages/runtime/package.json', 'utf8'));
7272
return 'v' + packageJson.version;
7373
74-
- name: Publish to npm
74+
- name: Create & push git tag
75+
if: github.event.inputs.npm_tag == 'latest'
7576
run: |
7677
git tag ${{ steps.version_to_release.outputs.result }}
7778
git push origin ${{ steps.version_to_release.outputs.result }}
79+
80+
- name: Publish to npm
81+
run: |
7882
pnpm -r publish --tag ${{ github.event.inputs.npm_tag }} --publish-branch ${{ github.event.inputs.branch }}

0 commit comments

Comments
 (0)