diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c26dd0a..cba7397 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -24,9 +24,18 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 - - uses: c-hive/gha-yarn-cache@v1 + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn cache dir)" + - uses: actions/cache@v3 + id: yarn-cache # use this to check for cache hit or miss + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- - name: Install Deps - run: yarn install + run: yarn install --frozen-lockfile - name: Typecheck run: yarn type-check - name: Lint js diff --git a/.vscode/settings.json b/.vscode/settings.json index 5456429..b77483d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,9 +3,9 @@ "editor.tabSize": 2, "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "eslint.autoFixOnSave": true, - "eslint.run": true, + "source.fixAll.eslint": "explicit", + "eslint.autoFixOnSave": "explicit", + "eslint.run": "explicit" }, "editor.defaultFormatter": "esbenp.prettier-vscode", "typescript.updateImportsOnFileMove.enabled": "always", diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 66b33dd..2db7dc4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -30,6 +30,10 @@ const IndexPage: NextPage = () => { }, ]} /> + {/* This is a hidden comment that will be visible in view source */} + diff --git a/yarn.lock b/yarn.lock index 07ae78b..3768bf4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3543,9 +3543,9 @@ camelcase@^5.0.0: integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== caniuse-lite@^1.0.30001406, caniuse-lite@^1.0.30001503: - version "1.0.30001515" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001515.tgz#418aefeed9d024cd3129bfae0ccc782d4cb8f12b" - integrity sha512-eEFDwUOZbE24sb+Ecsx3+OvNETqjWIdabMy52oOkIgcUtAsQifjUG9q4U9dgTHJM2mfk4uEPxc0+xuFdJ629QA== + version "1.0.30001717" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001717.tgz" + integrity sha512-auPpttCq6BDEG8ZAuHJIplGw6GODhjw+/11e7IjpnYCxZcW/ONgPs0KVBJ0d1bY3e2+7PRe5RCLyP+PfwVgkYw== chalk@^2.0.0, chalk@^2.4.2: version "2.4.2"