From b37cc349d4be4a978fcc1de10c2bdcbe9901d521 Mon Sep 17 00:00:00 2001 From: jorenbroekema Date: Mon, 9 Nov 2020 14:06:53 +0100 Subject: [PATCH] chore: update workflows to use yarn cache --- .github/workflows/release.yml | 16 ++++----- .github/workflows/verify.yml | 42 +++++++++++----------- packages/providence-analytics/package.json | 3 +- tsconfig.json | 3 +- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b22fb225d..6836454c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,20 +24,20 @@ jobs: node-version: 14.x registry-url: 'https://registry.npmjs.org' - - name: Get npm cache directory - id: npm-cache-dir + - name: Get yarn cache directory + id: yarn-cache-dir run: | - echo "::set-output name=dir::$(npm config get cache)" + echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v2 - id: npm-cache # use this to check for `cache-hit` (`steps.npm-cache.outputs.cache-hit != 'true'`) + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: - path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + path: ${{ steps.yarn-cache-dir.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-npm- + ${{ runner.os }}-yarn- - name: Install Dependencies - run: + run: yarn --frozen-lockfile - name: Create Release Pull Request or Publish to npm id: changesets diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 963fcfa46..59b9ab57e 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -14,17 +14,17 @@ jobs: with: node-version: 14.x - - name: Get npm cache directory - id: npm-cache-dir + - name: Get yarn cache directory + id: yarn-cache-dir run: | - echo "::set-output name=dir::$(npm config get cache)" + echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v2 - id: npm-cache # use this to check for `cache-hit` (`steps.npm-cache.outputs.cache-hit != 'true'`) + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: - path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + path: ${{ steps.yarn-cache-dir.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-npm- + ${{ runner.os }}-yarn- - name: Install Dependencies run: yarn --frozen-lockfile @@ -46,17 +46,17 @@ jobs: with: node-version: 14.x - - name: Get npm cache directory - id: npm-cache-dir + - name: Get yarn cache directory + id: yarn-cache-dir run: | - echo "::set-output name=dir::$(npm config get cache)" + echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v2 - id: npm-cache # use this to check for `cache-hit` (`steps.npm-cache.outputs.cache-hit != 'true'`) + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: - path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + path: ${{ steps.yarn-cache-dir.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-npm- + ${{ runner.os }}-yarn- - name: Install Dependencies run: yarn --frozen-lockfile @@ -80,17 +80,17 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Get npm cache directory - id: npm-cache-dir + - name: Get yarn cache directory + id: yarn-cache-dir run: | - echo "::set-output name=dir::$(npm config get cache)" + echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v2 - id: npm-cache # use this to check for `cache-hit` (`steps.npm-cache.outputs.cache-hit != 'true'`) + id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: - path: ${{ steps.npm-cache-dir.outputs.dir }} - key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + path: ${{ steps.yarn-cache-dir.outputs.dir }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-npm- + ${{ runner.os }}-yarn- - name: Install Dependencies run: yarn --frozen-lockfile diff --git a/packages/providence-analytics/package.json b/packages/providence-analytics/package.json index 1328e87f5..dd5661558 100644 --- a/packages/providence-analytics/package.json +++ b/packages/providence-analytics/package.json @@ -49,7 +49,8 @@ "ora": "^3.4.0", "parse5": "^5.1.1", "read-package-tree": "5.3.1", - "semver": "^7.1.3" + "semver": "^7.1.3", + "typescript": "3.9.7" }, "devDependencies": { "mermaid": "^8.2.6", diff --git a/tsconfig.json b/tsconfig.json index 761120841..5d9493e95 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,8 +12,7 @@ "alwaysStrict": true, "types": ["node", "mocha", "sinon"], "esModuleInterop": true, - "suppressImplicitAnyIndexErrors": true, - "skipLibCheck": true + "suppressImplicitAnyIndexErrors": true }, "include": ["packages/**/*.js"], "exclude": [