Skip to content

Commit

Permalink
[chore] Improve CI (#7945)
Browse files Browse the repository at this point in the history
* stop to use cache

* update on.push.branches

* rename
  • Loading branch information
baseballyama committed Oct 16, 2022
1 parent ef84921 commit caca8a5
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI
on: [push, pull_request]
on:
push:
branches: [ master ]
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
Expand All @@ -9,8 +12,8 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
Expand All @@ -20,11 +23,11 @@ jobs:
- run: npm run build
env:
PUBLISH: true
- uses: actions/cache@v3
- name: Upload build assets
id: upload-artifact
uses: actions/upload-artifact@v3
with:
# cache key based on OS as the full path for each OS may be different
# and windows is not able to reuse the cache from ubuntu
key: output-${{ github.run_id }}-${{ matrix.os }}
name: build-assets
path: |
index.*
compiler.*
Expand All @@ -51,21 +54,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: npm
- uses: actions/cache@v3
- name: Download build assets
uses: actions/download-artifact@v3
id: download-artifact
with:
key: output-${{ github.run_id }}-${{ matrix.os }}
path: |
index.*
compiler.*
ssr.*
action/
animate/
easing/
internal/
motion/
store/
transition/
types/
name: build-assets
- run: npm install
env:
SKIP_PREPARE: true
Expand Down

0 comments on commit caca8a5

Please sign in to comment.