mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
Update website.yml
This commit is contained in:
parent
60b263f23d
commit
97947ebb3d
1 changed files with 8 additions and 4 deletions
12
.github/workflows/website.yml
vendored
12
.github/workflows/website.yml
vendored
|
@ -6,6 +6,10 @@ on:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: website-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -22,7 +26,7 @@ jobs:
|
||||||
ports:
|
ports:
|
||||||
- 4873:4873
|
- 4873:4873
|
||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: --max_old_space_size=4096
|
NODE_OPTIONS: --max_old_space_size=4096
|
||||||
steps:
|
steps:
|
||||||
|
@ -48,8 +52,8 @@ jobs:
|
||||||
path: ~/.pnpm-store
|
path: ~/.pnpm-store
|
||||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
pnpm-
|
pnpm-
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
- name: Build Translations percentage
|
- name: Build Translations percentage
|
||||||
run: pnpm --filter @verdaccio/crowdin-translations build
|
run: pnpm --filter @verdaccio/crowdin-translations build
|
||||||
|
@ -71,5 +75,5 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
run: pnpm --filter ...@verdaccio/website netlify:deploy
|
run: pnpm --filter ...@verdaccio/website netlify:deploy
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue