diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 85f58991..c6208e7a 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'javascript' ] + node-version: [ 18 ] steps: - uses: maxim-lobanov/setup-xcode@v1 @@ -34,6 +34,16 @@ jobs: with: fetch-depth: 0 + - uses: pnpm/action-setup@v2.2.2 + with: + version: 7 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - name: Run Version Script env: GH_REQUEST_TOKEN: ${{ secrets.RELEASE_TOKEN }} @@ -49,12 +59,9 @@ jobs: - name: Setup Environment run: brew install automake #libtool autoconf - - name: Clear node_airtunes2 cache - run: sudo rm -rf /Users/runner/Library/Caches/Yarn/v6/.tmp/cf5bc2de2629636ca224995234b8eaa1 || true - - name: Install and Configure Node Modules run: | - yarn install + pnpm install cp resources/verror-types node_modules/@types/verror/index.d.ts cp resources/macPackager.js node_modules/app-builder-lib/out/macPackager.js rm -r node_modules/pouchdb-node/node_modules/leveldown || true @@ -70,7 +77,7 @@ jobs: APPLE_ID_PASSWORD: ${{ secrets.APPLEIDPASS }} PSC_NAME: ${{ secrets.PSC_NAME }} DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer - run: yarn dist:universalNotWorking -p never + run: pnpm dist:universalNotWorking -p never - name: Add license to DMG run: npx dmg-license resources/license.json dist/*.dmg