diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index d9968abd..2927143d 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -61,30 +61,12 @@ jobs: node_modules .yarn/cache .yarn/install-state.gz - # Include git config in cache key to bust cache when git rules change - key: ${{ runner.os }}-yarn-https-v3-${{ hashFiles('**/yarn.lock') }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | - ${{ runner.os }}-yarn-https-v3- - - - name: Fix libsignal URL for Yarn - run: | - # Yarn 4.x ignores git config and converts git+https:// to SSH - # Temporarily replace git+https:// with direct HTTPS tarball URL - echo "🔧 Patching package.json to use HTTPS instead of git+https://" - sed -i 's|"libsignal": "git+https://github.com/whiskeysockets/libsignal-node"|"libsignal": "https://github.com/whiskeysockets/libsignal-node/archive/refs/heads/master.tar.gz"|g' package.json - - # Verify change - grep libsignal package.json + ${{ runner.os }}-yarn- - name: Install packages - run: | - # Try install with immutable mode first - if ! yarn install --immutable; then - echo "⚠️ Immutable install failed. This might be due to SSH references in cache." - echo "Clearing node_modules and retrying without immutable mode..." - rm -rf node_modules - yarn install - fi + run: yarn install --immutable - name: Update WhatsApp Web Version id: update_version diff --git a/package.json b/package.json index 9ee2357c..295c186b 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@hapi/boom": "^9.1.3", "async-mutex": "^0.5.0", "fflate": "^0.8.2", - "libsignal": "git+https://github.com/whiskeysockets/libsignal-node", + "libsignal": "https://github.com/whiskeysockets/libsignal-node.git", "lru-cache": "^11.1.0", "music-metadata": "^11.7.0", "p-queue": "^9.0.0",