|
|
@ -1,5 +1,8 @@
|
|
|
|
name: CI
|
|
|
|
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
on:
|
|
|
|
|
|
|
|
push:
|
|
|
|
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
permissions:
|
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
@ -9,8 +12,8 @@ jobs:
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
node-version: 16
|
|
|
|
cache: npm
|
|
|
|
cache: npm
|
|
|
@ -20,11 +23,11 @@ jobs:
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm run build
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
PUBLISH: true
|
|
|
|
PUBLISH: true
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
- name: Upload build assets
|
|
|
|
|
|
|
|
id: upload-artifact
|
|
|
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
# cache key based on OS as the full path for each OS may be different
|
|
|
|
name: build-assets
|
|
|
|
# and windows is not able to reuse the cache from ubuntu
|
|
|
|
|
|
|
|
key: output-${{ github.run_id }}-${{ matrix.os }}
|
|
|
|
|
|
|
|
path: |
|
|
|
|
path: |
|
|
|
|
index.*
|
|
|
|
index.*
|
|
|
|
compiler.*
|
|
|
|
compiler.*
|
|
|
@ -51,21 +54,11 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: npm
|
|
|
|
cache: npm
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
- name: Download build assets
|
|
|
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
|
|
|
id: download-artifact
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
key: output-${{ github.run_id }}-${{ matrix.os }}
|
|
|
|
name: build-assets
|
|
|
|
path: |
|
|
|
|
|
|
|
|
index.*
|
|
|
|
|
|
|
|
compiler.*
|
|
|
|
|
|
|
|
ssr.*
|
|
|
|
|
|
|
|
action/
|
|
|
|
|
|
|
|
animate/
|
|
|
|
|
|
|
|
easing/
|
|
|
|
|
|
|
|
internal/
|
|
|
|
|
|
|
|
motion/
|
|
|
|
|
|
|
|
store/
|
|
|
|
|
|
|
|
transition/
|
|
|
|
|
|
|
|
types/
|
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
- run: npm install
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
SKIP_PREPARE: true
|
|
|
|
SKIP_PREPARE: true
|
|
|
|