From 58f90b5b78d9f667d1e2233a54b50b10f0234162 Mon Sep 17 00:00:00 2001 From: Daniel Gomes Date: Fri, 28 Jun 2024 11:54:00 -0300 Subject: [PATCH] ci(no-changelog): fixing workflow files --- .github/workflows/prepare-preview.yml | 4 ++++ .github/workflows/release.yml | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prepare-preview.yml b/.github/workflows/prepare-preview.yml index ee0d5bba3..3188c3d14 100644 --- a/.github/workflows/prepare-preview.yml +++ b/.github/workflows/prepare-preview.yml @@ -37,6 +37,10 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} + - name: Set NPM config + run: | + npm config set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }} + - name: Extract Dependencies id: extract-dependencies run: echo "DEPENDENCY_HASH=$(npx --yes @rocketclimb/sh extract-dependencies --registry=https://npm.pkg.github.com)" >> $GITHUB_OUTPUT diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9393289c..ad5795fd7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,9 +59,14 @@ jobs: git config user.email ${{ env.AUTOMATION_USER_EMAIL }} - name: Creating Tag ${{ steps.set-tag.outputs.PENDING_TAG }} + if: steps.set-tag.outputs.PENDING_TAG != '' run: | git tag --force -a ${{ steps.set-tag.outputs.PENDING_TAG }} -m "${{ steps.set-tag.outputs.PENDING_TAG }}" && git push origin ${{ steps.set-tag.outputs.PENDING_TAG }} --no-verify + - name: Warning about no Pending tag + if: steps.set-tag.outputs.PENDING_TAG == '' + run: echo "No pending tag found. Proceeding with Ignition publishing..." + create-release: name: Create rocketicons release runs-on: ubuntu-latest @@ -117,9 +122,13 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} + - name: Set NPM config + run: | + npm config set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }} + - name: Get Dependency Hash id: get-dependency-hash - run: echo "DEPENDENCY_HASH=$(npx --yes @rocketclimb/sh extract-dependencies)" >> $GITHUB_OUTPUT + run: echo "DEPENDENCY_HASH=$(npx --yes @rocketclimb/sh extract-dependencies --registry=https://npm.pkg.github.com)" >> $GITHUB_OUTPUT publish-ignition: name: Publish Ignition without rocketicons release