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 | 5b3c461d7fd5418f27606cc04b08aa52df010687 (patch) | |
tree | 761ba11db37ffb8a79082063a80a79c50ad5eb2d /.github/workflows | |
parent | 15ebe6a7197a3b7761ff153f70812d0366036cec (diff) | |
download | timeline-5b3c461d7fd5418f27606cc04b08aa52df010687.tar.gz timeline-5b3c461d7fd5418f27606cc04b08aa52df010687.tar.bz2 timeline-5b3c461d7fd5418f27606cc04b08aa52df010687.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
|