From 99029f059c8bdbd5fcdbdab4809438b7e0d9c6a9 Mon Sep 17 00:00:00 2001 From: Sawyer Burnett Date: Mon, 18 Mar 2024 09:51:48 -0700 Subject: [PATCH 1/3] use newer action versions for release.yml --- .github/workflows/release.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f917064..30cfa3c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,30 +18,18 @@ jobs: pull-requests: write steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 - with: - node-version: 18 - - - uses: pnpm/action-setup@v2 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 with: version: 8.2.0 - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - name: Setup pnpm cache + - uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: ${{ runner.os }}-pnpm-store- + cache: "pnpm" + node-version: 18.x - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Build packages run: pnpm run build:packages - - name: PR or Publish id: changesets uses: changesets/action@v1 From 434d9992eb79d5a239fdb5101420a64bfb4d9ff0 Mon Sep 17 00:00:00 2001 From: Sawyer Burnett Date: Mon, 18 Mar 2024 09:57:31 -0700 Subject: [PATCH 2/3] clear warnings for static-analysis.yml --- .github/workflows/static-analysis.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 4aaad693..373a7541 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -9,35 +9,22 @@ on: jobs: static-analysis: - name: 'Lint and Type-check' + name: "Lint and Type-check" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 - with: - node-version: 18 - - - uses: pnpm/action-setup@v2 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 with: version: 8.2.0 - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - name: Setup pnpm cache + - uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: ${{ runner.os }}-pnpm-store- + cache: "pnpm" + node-version: 18 - name: Install dependencies run: pnpm install - - name: Build library run: pnpm run build:lib - - name: Type Check run: pnpm run typecheck - - name: Lint run: pnpm run lint From dcd9b72e5ab1ca1f7fb8e70e32a2e21c322e4559 Mon Sep 17 00:00:00 2001 From: Sawyer Burnett Date: Mon, 18 Mar 2024 09:57:50 -0700 Subject: [PATCH 3/3] remove node 16 and clear warnings for unit-test.yml --- .github/workflows/unit-test.yml | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 831fd047..3a43cf56 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -8,34 +8,18 @@ on: workflow_dispatch: jobs: - matrix: - name: 'Node ${{ matrix.node }}' + unit-test: runs-on: ubuntu-latest - strategy: - matrix: - node: [16, 18] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - - - uses: pnpm/action-setup@v2 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 with: version: 8.2.0 - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - name: Setup pnpm cache + - uses: actions/setup-node@v4 with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: ${{ runner.os }}-pnpm-store- + cache: "pnpm" + node-version: 18 - name: Install dependencies run: pnpm install - - name: Unit Test run: pnpm run test -