From 3ccc923e6690fa81b08435cf6e4ca44812fd06a4 Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Thu, 11 May 2023 14:00:46 +0200 Subject: [PATCH] fix(npm-publish): revert renaming of NPM_AUTH_TOKEN (#8831) * ci(npm-publish): remove unnecessary dry-run step * fix(npm-publish): revert renamed env variable * ci(npm-publish): rename steps --- .github/workflows/npm-publish.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 806acd7749ab..ff86ac284cca 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,27 +15,29 @@ jobs: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - name: Release + uses: google-github-actions/release-please-action@v3 id: release with: release-type: node package-name: release-please-action - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 if: steps.release.outputs.release_created - - name: Setup Node.js environment + - name: Setup uses: actions/setup-node@v3 if: steps.release.outputs.release_created with: node-version: 18 cache: yarn - - name: Install all yarn packages + - name: Install if: steps.release.outputs.release_created run: yarn --frozen-lockfile - - name: Build the build + - name: Build if: steps.release.outputs.release_created env: # What this does is it makes sure the built client is made for @@ -56,12 +58,8 @@ jobs: CONTENT_ROOT: testing/content/files run: yarn build:prepare - - name: Dry-run publish to see which files are included - if: steps.release.outputs.release_created - run: npm publish --dry-run - - - name: Publish to npmjs + - name: Publish if: steps.release.outputs.release_created run: npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}