diff --git a/.github/workflows/build-package.yaml b/.github/workflows/build-package.yaml index 64b444d..5a40f91 100644 --- a/.github/workflows/build-package.yaml +++ b/.github/workflows/build-package.yaml @@ -15,26 +15,17 @@ jobs: - uses: pnpm/action-setup@v4 name: Install pnpm - with: - run_install: false - name: Setup NodeJS uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" - - - name: Get pnpm store directory - shell: bash + cache: pnpm + + - name: Update npm run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + npm install -g npm@latest + npm --version - name: Install dependencies run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b9e619..6ca1fa9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} permissions: id-token: write # Required for OIDC - contents: read + contents: write # Required for changesets pushing jobs: release: @@ -29,17 +29,12 @@ jobs: uses: actions/setup-node@v6 with: node-version-file: ".nvmrc" - - name: Get pnpm store directory - shell: bash + cache: pnpm + - name: Update npm run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- + npm install -g npm@latest + npm --version + - name: Install dependencies run: pnpm install diff --git a/.nvmrc b/.nvmrc index 805b5a4..f3a1a23 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20.9.0 +v24.10.0