From 1e7f3b9dc0f620d93af7b3c7b4bedcb3404981ab Mon Sep 17 00:00:00 2001 From: Jorrin Date: Sat, 20 Apr 2024 00:56:12 +0200 Subject: [PATCH] update pnpm to v9 --- .github/workflows/build-mobile-comment.yml | 16 ++++++++-------- .github/workflows/build-mobile.yml | 8 ++++---- .github/workflows/release-mobile.yml | 16 ++++++++-------- tooling/github/setup/action.yml | 6 +++++- 4 files changed, 25 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build-mobile-comment.yml b/.github/workflows/build-mobile-comment.yml index 87fc0f7..b13cc2e 100644 --- a/.github/workflows/build-mobile-comment.yml +++ b/.github/workflows/build-mobile-comment.yml @@ -24,14 +24,14 @@ jobs: - uses: pnpm/action-setup@v3 name: Install pnpm with: - version: 8 + version: 9 run_install: false - + - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 21 - cache: "pnpm" + node-version: 21 + cache: "pnpm" - name: Set up JDK 17 uses: actions/setup-java@v4 @@ -45,7 +45,7 @@ jobs: - name: Cache Node Modules uses: actions/cache@v4 with: - path: '**/node_modules' + path: "**/node_modules" key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install dependencies @@ -78,9 +78,9 @@ jobs: - uses: pnpm/action-setup@v3 name: Install pnpm with: - version: 8 + version: 9 run_install: false - + - name: Install Node.js uses: actions/setup-node@v4 with: @@ -90,7 +90,7 @@ jobs: - name: Cache Node Modules uses: actions/cache@v4 with: - path: '**/node_modules' + path: "**/node_modules" key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install dependencies diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.yml index 86e1571..c2384ba 100644 --- a/.github/workflows/build-mobile.yml +++ b/.github/workflows/build-mobile.yml @@ -20,7 +20,7 @@ jobs: - uses: pnpm/action-setup@v3 name: Install pnpm with: - version: 8 + version: 9 run_install: false - name: Install Node.js @@ -41,7 +41,7 @@ jobs: - name: Cache Node Modules uses: actions/cache@v4 with: - path: '**/node_modules' + path: "**/node_modules" key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install dependencies @@ -69,7 +69,7 @@ jobs: - uses: pnpm/action-setup@v3 name: Install pnpm with: - version: 8 + version: 9 run_install: false - name: Install Node.js @@ -81,7 +81,7 @@ jobs: - name: Cache Node Modules uses: actions/cache@v4 with: - path: '**/node_modules' + path: "**/node_modules" key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install dependencies diff --git a/.github/workflows/release-mobile.yml b/.github/workflows/release-mobile.yml index 76545a7..9f1f8f7 100644 --- a/.github/workflows/release-mobile.yml +++ b/.github/workflows/release-mobile.yml @@ -42,8 +42,8 @@ jobs: - uses: pnpm/action-setup@v3 name: Install pnpm with: - version: 8 - run_install: false + version: 9 + run_install: false - name: Install Node.js uses: actions/setup-node@v4 @@ -63,7 +63,7 @@ jobs: - name: Cache Node Modules uses: actions/cache@v4 with: - path: '**/node_modules' + path: "**/node_modules" key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install dependencies @@ -95,7 +95,7 @@ jobs: - uses: pnpm/action-setup@v3 name: Install pnpm with: - version: 8 + version: 9 run_install: false - name: Install Node.js @@ -107,7 +107,7 @@ jobs: - name: Cache Node Modules uses: actions/cache@v4 with: - path: '**/node_modules' + path: "**/node_modules" key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install dependencies @@ -178,7 +178,7 @@ jobs: uses: actions/download-artifact@v4 with: name: ipa - + - name: Update app-repo.json run: | VERSION=$(jq -r '.version' apps/expo/package.json) @@ -186,8 +186,8 @@ jobs: IPA_SIZE=$(ls -l movie-web.ipa | awk '{print $5}') NEW_ENTRY=$(jq -n --arg version "$VERSION" --arg date "$DATE" --arg size "$IPA_SIZE" --arg downloadURL "https://github.com/movie-web/native-app/releases/download/v$VERSION/movie-web.ipa" '{version: $version, date: $date, size: ($size | tonumber), downloadURL: $downloadURL}') jq --argjson newEntry "$NEW_ENTRY" '.apps[0].versions |= [$newEntry] + .' apps/expo/app-repo.json > temp.json && mv temp.json apps/expo/app-repo.json - + - uses: EndBug/add-and-commit@v9 with: default_author: github_actions - message: "chore: update app-repo.json" \ No newline at end of file + message: "chore: update app-repo.json" diff --git a/tooling/github/setup/action.yml b/tooling/github/setup/action.yml index 129a9bc..66a4972 100644 --- a/tooling/github/setup/action.yml +++ b/tooling/github/setup/action.yml @@ -4,7 +4,11 @@ description: "Common setup steps for Actions" runs: using: composite steps: - - uses: pnpm/action-setup@v2 + - uses: pnpm/action-setup@v3 + name: Install pnpm + with: + version: 9 + run_install: false - uses: actions/setup-node@v4 with: node-version: 21