Skip to content

Commit

Permalink
feat: 添加主干的文件构建 action (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Feb 17, 2023
1 parent 38d378f commit 75ab2d7
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 63 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: master build

on:
push:
branches:
- v5.0.x

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: install
run: yarn install

- name: build
run: npm run build
env:
CI: false

- name: save build
uses: actions/upload-artifact@v3
with:
name: build
path: |
packages/*/dist/*.js
!**/node_modules/**
60 changes: 0 additions & 60 deletions .github/workflows/ci-18.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci-16.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI-16
name: CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
Expand All @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node_version: ['16']
node_version: ['16', '18']

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
2 changes: 1 addition & 1 deletion packages/f2/.fatherrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { visualizer } from 'rollup-plugin-visualizer';
const isBundleVis = !!process.env.BUNDLE_VIS;

export default process.env.CI
export default process.env.CI && process.env.CI !== 'false'
? {}
: {
umd: {
Expand Down

0 comments on commit 75ab2d7

Please sign in to comment.