From cc08d98c5e170406b104cadb71add94010c59dae Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 29 Jan 2021 23:29:52 +0800 Subject: Front end migrate to npm because of buggy pnp in yarn 2. --- .github/workflows/front-ci.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '.github/workflows') 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 -- cgit v1.2.3