Skip to content

Commit c9c7177

Browse files
authored
ci(release): merge workflow updates into 'next' branch (#8386)
1 parent a79f493 commit c9c7177

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/release-swagger-ui-react.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ jobs:
7373
run: |
7474
cd ../dist
7575
pwd
76-
npm pack .
76+
npm publish .
7777
env:
7878
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}

.github/workflows/release-swagger-ui.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717
persist-credentials: false
18-
submodules: true
1918
ref: next
2019

2120
- name: Setup Node.js
2221
uses: actions/setup-node@v3
2322
with:
2423
node-version: 16
25-
registry-url: https://npm.pkg.github.com/
26-
scope: "@swagger-api"
2724

2825
- name: Determine the next release version
2926
uses: cycjimmy/semantic-release-action@v3
@@ -34,8 +31,7 @@ jobs:
3431
@semantic-release/exec
3532
env:
3633
GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
37-
NPM_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
38-
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3935

4036
- name: Nothing to release
4137
if: ${{ env.NEXT_RELEASE_VERSION == '' }}
@@ -46,8 +42,6 @@ jobs:
4642
4743
- name: Install dependencies
4844
run: npm ci
49-
env:
50-
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
5145

5246
- name: Semantic Release
5347
id: semantic
@@ -58,8 +52,7 @@ jobs:
5852
@semantic-release/git
5953
env:
6054
GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
61-
NPM_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
62-
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
55+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6356

6457
- name: Release failed
6558
if: steps.semantic.outputs.new_release_published == 'false'

0 commit comments

Comments
 (0)