From e2e2920eda5b18c4abd4926c390f373fef6195c9 Mon Sep 17 00:00:00 2001 From: Tim Lai Date: Tue, 14 Feb 2023 14:44:33 -0800 Subject: [PATCH] ci(release): update github action for npm package (#8384) --- .github/workflows/release-swagger-ui.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/release-swagger-ui.yml b/.github/workflows/release-swagger-ui.yml index 432f418e..4c016382 100644 --- a/.github/workflows/release-swagger-ui.yml +++ b/.github/workflows/release-swagger-ui.yml @@ -15,15 +15,12 @@ jobs: with: fetch-depth: 0 persist-credentials: false - submodules: true ref: next - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: 16 - registry-url: https://npm.pkg.github.com/ - scope: "@swagger-api" - name: Determine the next release version uses: cycjimmy/semantic-release-action@v3 @@ -35,7 +32,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} - name: Nothing to release if: ${{ env.NEXT_RELEASE_VERSION == '' }} @@ -46,8 +42,6 @@ jobs: - name: Install dependencies run: npm ci - env: - NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} - name: Semantic Release id: semantic @@ -58,8 +52,7 @@ jobs: @semantic-release/git env: GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Release failed if: steps.semantic.outputs.new_release_published == 'false'