Skip to content

Commit e2e2920

Browse files
authoredFeb 14, 2023
ci(release): update github action for npm package (#8384)
1 parent 812403e commit e2e2920

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed
 

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

+1-8
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
@@ -35,7 +32,6 @@ jobs:
3532
env:
3633
GITHUB_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
3734
NPM_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
38-
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_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)
Please sign in to comment.