diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7b8632e..4d94fa2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,33 +10,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Install Node v18 - uses: actions/setup-node@v3 - with: - node-version: 18.x - - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 name: Install pnpm - id: pnpm-install with: - version: 7 - run_install: false + version: 9 - - 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 + - name: Install Node v18 + 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- + node-version: 18.x + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c5390b3..238758e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,33 +19,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Install Node v18 - uses: actions/setup-node@v3 - with: - node-version: 18.x - - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 name: Install pnpm - id: pnpm-install with: - version: 7 - run_install: false + version: 9 - - 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 + - name: Install Node v18 + 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- + node-version: 18.x + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e8be73..6e0f032 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,34 +24,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Set up Node.js for NPM - uses: actions/setup-node@v3 - with: - node-version: 18.x - registry-url: 'https://registry.npmjs.org' + - name: Checkout repository + uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 name: Install pnpm - id: pnpm-install with: - version: 7 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + version: 9 - - uses: actions/cache@v3 - name: Setup pnpm cache + - name: Install Node v18 + 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- + node-version: 18.x + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile @@ -69,40 +54,21 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Set up Node.js for GPR - uses: actions/setup-node@v3 - with: - node-version: 18.x - registry-url: 'https://npm.pkg.github.com/' - scope: '@snazzah' - - - name: Install Node v18 - uses: actions/setup-node@v3 - with: - node-version: 18.x + - name: Checkout repository + uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 name: Install pnpm - id: pnpm-install with: - version: 7 - run_install: false - - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + version: 9 - - uses: actions/cache@v3 - name: Setup pnpm cache + - name: Install Node v18 for GPR + 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- + node-version: 18.x + cache: 'pnpm' + registry-url: 'https://npm.pkg.github.com/' + scope: '@snazzah' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 946375a..298bbfb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,33 +22,18 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Install Node v18 - uses: actions/setup-node@v3 - with: - node-version: 18.x - - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v4 name: Install pnpm - id: pnpm-install with: - version: 7 - run_install: false + version: 9 - - 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 + - name: Install Node v18 + 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- + node-version: 18.x + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile