Skip to content

Commit 9e1efca

Browse files
authored
Update promote.yml
1 parent 2799181 commit 9e1efca

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/promote.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
name: promote
22
on:
3-
push:
4-
# Sequence of patterns matched against refs/tags
5-
tags:
6-
- v2.*
3+
workflow_dispatch:
4+
inputs:
5+
new_tag_name:
6+
description: Name of tag created to be associated with this promotion.
7+
required: true
78
jobs:
89
build-and-promote:
910
runs-on: ubuntu-latest
1011
env:
1112
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1213
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1314
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15+
NEW_TAG_NAME: ${{ github.event.inputs.new_tag_name }}
1416
steps:
1517
- uses: actions/checkout@v4
1618
- name: Build for promotion
@@ -26,5 +28,5 @@ jobs:
2628
- name: Manual publish
2729
run: |
2830
cd packages/module
29-
npm version ${{ github.ref_name }} --git-tag-version false
31+
npm version "$NEW_TAG_NAME" --git-tag-version false
3032
npm publish --tag=latest

0 commit comments

Comments
 (0)