mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore(root): staging pipeline removed
This commit is contained in:
parent
92ec9fef67
commit
0730ecef29
100
.github/workflows/staging.yaml
vendored
100
.github/workflows/staging.yaml
vendored
@ -1,100 +0,0 @@
|
|||||||
name: CI/CD [Staging]
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [staging]
|
|
||||||
paths-ignore: ['**/README.md']
|
|
||||||
pull_request:
|
|
||||||
branches: [staging]
|
|
||||||
types: [opened, synchronize]
|
|
||||||
paths-ignore: ['**/README.md']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
avoid_reduncy:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
if: ${{ github.event_name == 'push' }}
|
|
||||||
steps:
|
|
||||||
- name: Cancel Previous Redundant Builds
|
|
||||||
uses: styfle/cancel-workflow-action@0.9.1
|
|
||||||
with:
|
|
||||||
access_token: ${{ github.token }}
|
|
||||||
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
cache: 'yarn'
|
|
||||||
node-version: '14'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install --frozen-lockfile
|
|
||||||
- name: Lint
|
|
||||||
run: yarn lint
|
|
||||||
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
cache: 'yarn'
|
|
||||||
node-version: '14'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install --frozen-lockfile
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/.next/cache
|
|
||||||
# Generate a new cache whenever packages or source files change.
|
|
||||||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
|
|
||||||
# If source files changed but packages didn't, rebuild from a prior cache.
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
|
|
||||||
- name: Build
|
|
||||||
run: yarn build
|
|
||||||
|
|
||||||
tests:
|
|
||||||
needs: [lint, build]
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
cache: 'yarn'
|
|
||||||
node-version: '14'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install --frozen-lockfile
|
|
||||||
- name: Test
|
|
||||||
run: yarn coverage:update
|
|
||||||
- uses: codecov/codecov-action@v2
|
|
||||||
with:
|
|
||||||
directory: './packages/react'
|
|
||||||
|
|
||||||
deploy_preview:
|
|
||||||
needs: [tests]
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
continue-on-error: true
|
|
||||||
if: ${{ github.event_name == 'push' }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Deploy Preview to Vercel
|
|
||||||
uses: amondnet/vercel-action@v20
|
|
||||||
with:
|
|
||||||
vercel-token: ${{ secrets.VERCEL_TOKEN }}
|
|
||||||
github-token: ${{ github.token }}
|
|
||||||
github-comment: true
|
|
||||||
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
|
|
||||||
vercel-project-name: ${{ secrets.VERCEL_PROJECT_NAME}}
|
|
||||||
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}}
|
|
||||||
working-directory: './apps/docs'
|
|
||||||
alias-domains: |
|
|
||||||
staging.nextui.org
|
|
||||||
pr-{{PR_NUMBER}}.staging.nextui.org
|
|
||||||
@ -112,7 +112,7 @@ yarn build # or npm run build
|
|||||||
|
|
||||||
6. Send your pull request:
|
6. Send your pull request:
|
||||||
|
|
||||||
- You must send your pull request to the `staging` branch
|
- Send your pull request to the `main` branch
|
||||||
- Your pull request will be reviewed by the maintainers and the maintainers will decide if it is accepted or not
|
- Your pull request will be reviewed by the maintainers and the maintainers will decide if it is accepted or not
|
||||||
- Once the pull request is accepted, the maintainers will merge it to the `main` branch
|
- Once the pull request is accepted, the maintainers will merge it to the `main` branch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user