Skip to content

Commit f924071

Browse files
authoredFeb 15, 2023
ci(ga): copy ga workflows from next (#8393)
1 parent 33f2a0b commit f924071

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed
 

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

+8-7
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,21 @@ jobs:
2727
with:
2828
fetch-depth: 0
2929
persist-credentials: false
30-
submodules: true
3130
ref: next
3231

3332
- name: Setup Node.js
3433
uses: actions/setup-node@v3
3534
with:
3635
node-version: 16
37-
registry-url: https://npm.pkg.github.com/
38-
scope: "@swagger-api"
36+
37+
- name: Prepare SwaggerUI dist
38+
run: |
39+
cd ../../../
40+
npm ci
41+
npm run build
3942
4043
- name: Install dependencies (to create package manifest)
4144
run: npm ci
42-
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
4445

4546
- name: MKDIR `dist` working directory
4647
run: mkdir -p ../dist
@@ -73,6 +74,6 @@ jobs:
7374
run: |
7475
cd ../dist
7576
pwd
76-
npm publish .
77+
npm pack . --tag alpha
7778
env:
78-
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
79+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

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

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ jobs:
4343
- name: Install dependencies
4444
run: npm ci
4545

46+
- name: Prepare release
47+
run: |
48+
npm run build
49+
4650
- name: Semantic Release
4751
id: semantic
4852
uses: cycjimmy/semantic-release-action@v3

0 commit comments

Comments
 (0)
Please sign in to comment.