Skip to content

Commit

Permalink
chore: set ci env
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiden-FE committed Mar 18, 2024
1 parent dfa65f8 commit f2e5f3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- '**'

env:
CI: true
NODE_ENV: production

jobs:
lint:
name: Lint code
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ concurrency:
group: 'deploy'
cancel-in-progress: false

env:
CI: true
NODE_ENV: production

jobs:
lint:
name: Publish and deploy
Expand Down Expand Up @@ -72,9 +76,6 @@ jobs:
# 构建项目
- name: Run build
env:
NODE_ENV: production
NODE_OPTIONS: --max_old_space_size=8192
run: |
pnpm build
Expand Down

0 comments on commit f2e5f3e

Please sign in to comment.