mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 00:26:34 +03:00
fix: publish script (#2524)
This commit is contained in:
parent
9af774e443
commit
edac97236d
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
|
@ -50,7 +50,6 @@ jobs:
|
||||||
needs: [bundle, unit-tests, e2e-tests]
|
needs: [bundle, unit-tests, e2e-tests]
|
||||||
outputs:
|
outputs:
|
||||||
changed: ${{ steps.check.outputs.changed }}
|
changed: ${{ steps.check.outputs.changed }}
|
||||||
version: ${{ steps.check.outputs.version }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -65,6 +64,7 @@ jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish to NPM
|
name: Publish to NPM
|
||||||
needs: [check-version]
|
needs: [check-version]
|
||||||
|
if: needs.check-version.outputs.changed == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
|
@ -95,6 +95,7 @@ jobs:
|
||||||
publish-cdn:
|
publish-cdn:
|
||||||
name: Publish to CDN
|
name: Publish to CDN
|
||||||
needs: [check-version]
|
needs: [check-version]
|
||||||
|
if: needs.check-version.outputs.changed == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -113,7 +114,8 @@ jobs:
|
||||||
invalidate-cache:
|
invalidate-cache:
|
||||||
name: Clear cache
|
name: Clear cache
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [publish, publish-cdn]
|
needs: [check-version, publish, publish-cdn]
|
||||||
|
if: needs.check-version.outputs.changed == 'true'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user