Skip to content

Commit

Permalink
ci(ga): copy ga workflows from next (#8393)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lai committed Feb 15, 2023
1 parent 33f2a0b commit f924071
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/release-swagger-ui-react.yml
Expand Up @@ -27,20 +27,21 @@ 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: Prepare SwaggerUI dist
run: |
cd ../../../
npm ci
npm run build
- name: Install dependencies (to create package manifest)
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}

- name: MKDIR `dist` working directory
run: mkdir -p ../dist
Expand Down Expand Up @@ -73,6 +74,6 @@ jobs:
run: |
cd ../dist
pwd
npm publish .
npm pack . --tag alpha
env:
NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/release-swagger-ui.yml
Expand Up @@ -43,6 +43,10 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Prepare release
run: |
npm run build
- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v3
Expand Down

0 comments on commit f924071

Please sign in to comment.