ci(release): merge workflow updates into 'next' branch (#8386)

This commit is contained in:
Tim Lai
2023-02-14 15:09:20 -08:00
committed by GitHub
parent a79f493145
commit c9c7177e2a
2 changed files with 3 additions and 10 deletions

View File

@@ -73,6 +73,6 @@ jobs:
run: |
cd ../dist
pwd
npm pack .
npm publish .
env:
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}

View File

@@ -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
@@ -34,8 +31,7 @@ jobs:
@semantic-release/exec
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: 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'