From 6fdca5b846196d97336222a109f48f54b238fada Mon Sep 17 00:00:00 2001 From: Stephen Carter Date: Mon, 13 Jan 2025 12:33:03 -0500 Subject: [PATCH] FIX: @W-17291574@: Fix workflow to apply tag manually (attempt #2) --- .github/workflows/apply-npm-tag-to-version.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/apply-npm-tag-to-version.yml b/.github/workflows/apply-npm-tag-to-version.yml index 47aea13f6..d6b13fc7d 100644 --- a/.github/workflows/apply-npm-tag-to-version.yml +++ b/.github/workflows/apply-npm-tag-to-version.yml @@ -45,8 +45,9 @@ jobs: exit 1 - name: Apply tag + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | echo "You have confirmed that using this action is only recommended for emergency rollback situations and that you are responsible for manually applying the ${{ github.event.inputs.tag_name }} tag to ${{ github.event.inputs.package_name }}@${{ github.event.inputs.version }}." echo "Applying tag..." - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc npm dist-tag add ${{ github.event.inputs.package_name }}@${{ github.event.inputs.version }} ${{ github.event.inputs.tag_name }}