diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d59d4a37..c34ecd55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,17 +13,9 @@ jobs: steps: - uses: actions/checkout@v2.3.4 - name: Setup Node.js - uses: actions/setup-node@v2.1.5 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - name: Cache Node.js modules - uses: actions/cache@v2.1.6 + uses: actions/setup-node@v2.2.0 with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.OS }}-yarn- + cache: 'yarn' - run: yarn install --prefer-offline - run: yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/css/*.css - uses: aquiladev/ipfs-action@v0.1.5