mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
ci: skip preview for website on forks (#3208)
* ci: skip preview for website on forks * ci: allow run build
This commit is contained in:
parent
a6d9743c06
commit
c306a2f1cb
1 changed files with 3 additions and 0 deletions
3
.github/workflows/website.yml
vendored
3
.github/workflows/website.yml
vendored
|
@ -76,6 +76,7 @@ jobs:
|
||||||
run: pnpm netlify:build:deployPreview --filter ...@verdaccio/website
|
run: pnpm netlify:build:deployPreview --filter ...@verdaccio/website
|
||||||
|
|
||||||
- name: 🤖 Deploy Preview Netlify
|
- name: 🤖 Deploy Preview Netlify
|
||||||
|
if: github.repository == 'verdaccio/verdaccio'
|
||||||
uses: semoal/action-netlify-deploy@master
|
uses: semoal/action-netlify-deploy@master
|
||||||
id: netlify_preview
|
id: netlify_preview
|
||||||
with:
|
with:
|
||||||
|
@ -89,6 +90,7 @@ jobs:
|
||||||
build-dir: './website/build'
|
build-dir: './website/build'
|
||||||
|
|
||||||
- name: Audit preview URL with Lighthouse
|
- name: Audit preview URL with Lighthouse
|
||||||
|
if: github.repository == 'verdaccio/verdaccio'
|
||||||
id: lighthouse_audit
|
id: lighthouse_audit
|
||||||
uses: treosh/lighthouse-ci-action@9.3.0
|
uses: treosh/lighthouse-ci-action@9.3.0
|
||||||
with:
|
with:
|
||||||
|
@ -122,6 +124,7 @@ jobs:
|
||||||
core.setOutput("comment", comment);
|
core.setOutput("comment", comment);
|
||||||
|
|
||||||
- name: Add comment to PR
|
- name: Add comment to PR
|
||||||
|
if: github.repository == 'verdaccio/verdaccio'
|
||||||
id: comment_to_pr
|
id: comment_to_pr
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue