mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-03 23:09:17 -05:00
chore: restore ui-components.yml
setup is very particular cannot use corepack
This commit is contained in:
parent
6d860074ec
commit
56c082ab0a
1 changed files with 13 additions and 13 deletions
26
.github/workflows/ui-components.yml
vendored
26
.github/workflows/ui-components.yml
vendored
|
@ -1,17 +1,17 @@
|
||||||
name: UI Components
|
name: UI Components
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/ui-components.yml
|
- .github/workflows/ui-components.yml
|
||||||
- 'packages/ui-components/**'
|
- 'packages/ui-components/**'
|
||||||
- 'package.json'
|
- 'package.json'
|
||||||
- 'pnpm-workspace.yaml'
|
- 'pnpm-workspace.yaml'
|
||||||
- 'pnpm-lock.yaml'
|
- 'pnpm-lock.yaml'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DEBUG: verdaccio*
|
DEBUG: verdaccio*
|
||||||
|
@ -19,9 +19,9 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
deployments: write
|
deployments: write
|
||||||
pull-requests: write # to comment on pull-requests
|
pull-requests: write # to comment on pull-requests
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
@ -47,22 +47,22 @@ jobs:
|
||||||
- name: Install pnpm
|
- name: Install pnpm
|
||||||
run: |
|
run: |
|
||||||
corepack enable
|
corepack enable
|
||||||
corepack install
|
corepack prepare --activate pnpm@8.9.0
|
||||||
- name: Install
|
- name: Install
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Build storybook
|
- name: Build storybook
|
||||||
run: pnpm ui:storybook:build
|
run: pnpm ui:storybook:build
|
||||||
- name: Copy public content
|
- name: Copy public content
|
||||||
# the msw.js worker is need it at the storybook-static folder in production
|
# the msw.js worker is need it at the storybook-static folder in production
|
||||||
run: cp -R packages/ui-components/public/* packages/ui-components/storybook-static
|
run: cp -R packages/ui-components/public/* packages/ui-components/storybook-static
|
||||||
- name: 🔥 Deploy Production UI Netlify
|
- name: 🔥 Deploy Production UI Netlify
|
||||||
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
|
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
|
||||||
uses: verdaccio/action-netlify-deploy@1c086d59169edeec9254672c7de17d2ceac3928f # v2.0.0
|
uses: verdaccio/action-netlify-deploy@1c086d59169edeec9254672c7de17d2ceac3928f # v2.0.0
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
netlify-site-id: ${{ secrets.NETLIFY_UI_SITE_ID }}
|
netlify-site-id: ${{ secrets.NETLIFY_UI_SITE_ID }}
|
||||||
build-dir: './packages/ui-components/storybook-static'
|
build-dir: './packages/ui-components/storybook-static'
|
||||||
- name: 🤖 Deploy Preview UI Components Netlify
|
- name: 🤖 Deploy Preview UI Components Netlify
|
||||||
if: github.repository == 'verdaccio/verdaccio'
|
if: github.repository == 'verdaccio/verdaccio'
|
||||||
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
|
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
|
||||||
|
|
Loading…
Add table
Reference in a new issue