ci(ga): copy ga workflows from next (#8393)
This commit is contained in:
15
.github/workflows/release-swagger-ui-react.yml
vendored
15
.github/workflows/release-swagger-ui-react.yml
vendored
@@ -27,20 +27,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
submodules: true
|
|
||||||
ref: next
|
ref: next
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
registry-url: https://npm.pkg.github.com/
|
|
||||||
scope: "@swagger-api"
|
- name: Prepare SwaggerUI dist
|
||||||
|
run: |
|
||||||
|
cd ../../../
|
||||||
|
npm ci
|
||||||
|
npm run build
|
||||||
|
|
||||||
- name: Install dependencies (to create package manifest)
|
- name: Install dependencies (to create package manifest)
|
||||||
run: npm ci
|
run: npm ci
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: MKDIR `dist` working directory
|
- name: MKDIR `dist` working directory
|
||||||
run: mkdir -p ../dist
|
run: mkdir -p ../dist
|
||||||
@@ -73,6 +74,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd ../dist
|
cd ../dist
|
||||||
pwd
|
pwd
|
||||||
npm publish .
|
npm pack . --tag alpha
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
4
.github/workflows/release-swagger-ui.yml
vendored
4
.github/workflows/release-swagger-ui.yml
vendored
@@ -43,6 +43,10 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Prepare release
|
||||||
|
run: |
|
||||||
|
npm run build
|
||||||
|
|
||||||
- name: Semantic Release
|
- name: Semantic Release
|
||||||
id: semantic
|
id: semantic
|
||||||
uses: cycjimmy/semantic-release-action@v3
|
uses: cycjimmy/semantic-release-action@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user