mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 21:40:32 +03:00
chore: update publish cli workflow
This commit is contained in:
parent
e621535dc7
commit
aeb276aaf1
19
.github/workflows/publish-cli.yml
vendored
19
.github/workflows/publish-cli.yml
vendored
|
@ -2,12 +2,14 @@ name: Publish cli
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- v[0-9]*.[0-9]*.[0-9]*
|
- master
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bundle:
|
bundle:
|
||||||
|
needs: [ check-version-cli ]
|
||||||
|
if: needs.check-version-cli.outputs.changed == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -29,13 +31,15 @@ jobs:
|
||||||
path: bundles
|
path: bundles
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
unit-tests:
|
unit-tests:
|
||||||
|
needs: [ check-version-cli ]
|
||||||
|
if: needs.check-version-cli.outputs.changed == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
e2e-tests:
|
e2e-tests:
|
||||||
needs: [bundle]
|
needs: [ bundle ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
@ -43,10 +47,12 @@ jobs:
|
||||||
- name: Download bundled artifact
|
- name: Download bundled artifact
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: bundles
|
name: bundles-cli
|
||||||
path: bundles-cli
|
path: bundles
|
||||||
- run: npm run e2e
|
- run: npm run e2e
|
||||||
bundle-cli:
|
bundle-cli:
|
||||||
|
needs: [ check-version-cli ]
|
||||||
|
if: needs.check-version-cli.outputs.changed == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -72,7 +78,6 @@ jobs:
|
||||||
check-version-cli:
|
check-version-cli:
|
||||||
name: Check Version
|
name: Check Version
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [bundle-cli, unit-tests, e2e-tests]
|
|
||||||
outputs:
|
outputs:
|
||||||
changed: ${{ steps.check.outputs.changed }}
|
changed: ${{ steps.check.outputs.changed }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -88,7 +93,7 @@ jobs:
|
||||||
file-url: https://unpkg.com/redoc-cli/package.json
|
file-url: https://unpkg.com/redoc-cli/package.json
|
||||||
static-checking: localIsNew
|
static-checking: localIsNew
|
||||||
publish-cli:
|
publish-cli:
|
||||||
needs: [ check-version-cli ]
|
needs: [bundle-cli, unit-tests, e2e-tests]
|
||||||
if: needs.check-version-cli.outputs.changed == 'true'
|
if: needs.check-version-cli.outputs.changed == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user