diff options
| author | crupest <crupest@outlook.com> | 2021-01-29 23:29:52 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-01-29 23:29:52 +0800 |
| commit | cc08d98c5e170406b104cadb71add94010c59dae (patch) | |
| tree | 91885012d9203611eb278986e75737ca700e9d17 /.github/workflows | |
| parent | 72344fcf7a099e1fcc8495d5ea30c64b5dddf183 (diff) | |
| download | timeline-cc08d98c5e170406b104cadb71add94010c59dae.tar.gz timeline-cc08d98c5e170406b104cadb71add94010c59dae.tar.bz2 timeline-cc08d98c5e170406b104cadb71add94010c59dae.zip | |
Front end migrate to npm because of buggy pnp in yarn 2.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/front-ci.yaml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/front-ci.yaml b/.github/workflows/front-ci.yaml index 93581dad..2373c48c 100644 --- a/.github/workflows/front-ci.yaml +++ b/.github/workflows/front-ci.yaml @@ -22,19 +22,26 @@ jobs: steps:
- uses: actions/checkout@v2
+ - uses: actions/cache@v2
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+
- name: Use Node.js 15
uses: actions/setup-node@v1
with:
node-version: "15"
- name: Restore Packages
- run: yarn
+ run: npm ci
- name: Build App
- run: yarn build
+ run: npm run build
- name: Lint Code
- run: yarn lint
+ run: npm run lint
- name: Upload Artifact
uses: actions/upload-artifact@v2
|
