From 9e1efcabd691ddf7836f10c0c1370d2ea6bc2ce0 Mon Sep 17 00:00:00 2001 From: Nicole Thoen Date: Fri, 25 Oct 2024 09:52:05 -0400 Subject: [PATCH] Update promote.yml --- .github/workflows/promote.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index 411637e1..c0488f94 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -1,9 +1,10 @@ name: promote on: - push: - # Sequence of patterns matched against refs/tags - tags: - - v2.* + workflow_dispatch: + inputs: + new_tag_name: + description: Name of tag created to be associated with this promotion. + required: true jobs: build-and-promote: runs-on: ubuntu-latest @@ -11,6 +12,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NEW_TAG_NAME: ${{ github.event.inputs.new_tag_name }} steps: - uses: actions/checkout@v4 - name: Build for promotion @@ -26,5 +28,5 @@ jobs: - name: Manual publish run: | cd packages/module - npm version ${{ github.ref_name }} --git-tag-version false + npm version "$NEW_TAG_NAME" --git-tag-version false npm publish --tag=latest