some debug #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: publish on release | ||
|
Check failure on line 1 in .github/workflows/onRelease.yml
|
||
| on: | ||
| release: | ||
| types: [released] | ||
| permissions: | ||
| contents: write | ||
| jobs: | ||
| package-installers: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: macos-latest | ||
| command: pack macos | ||
| artifact_name: macos-pkg | ||
| artifact_path: cli/dist/**/*.pkg | ||
| - os: windows-latest | ||
| command: pack win --targets win32-x64 | ||
| artifact_name: windows-installer | ||
| artifact_path: cli/dist/**/*.exe | ||
| - os: ubuntu-latest | ||
| command: pack deb | ||
| artifact_name: linux-deb | ||
| artifact_path: cli/dist/**/*.deb | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'pnpm' | ||
| - run: pnpm install --frozen-lockfile | ||
| - run: pnpm run build | ||
| - name: Install Windows packaging dependencies | ||
| if: ${{ matrix.os == 'windows-latest' }} | ||
| run: choco install nsis.portable 7zip grep --no-progress -y | ||
| - name: Verify Windows packaging dependencies | ||
| if: ${{ matrix.os == 'windows-latest' }} | ||
| shell: pwsh | ||
| run: | | ||
| where.exe makensis | ||
| where.exe 7z | ||
| where.exe grep | ||
| - name: Build installer | ||
| run: pnpm -C cli exec oclif ${{ matrix.command }} | ||
| - name: Upload installer artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ matrix.artifact_name }} | ||
| path: ${{ matrix.artifact_path }} | ||
| package-tarballs: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'pnpm' | ||
| - run: pnpm install --frozen-lockfile | ||
| - run: pnpm run build | ||
| - name: Install 7-zip for packaging | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y p7zip-full | ||
| - name: Build tarballs | ||
| run: pnpm -C cli exec oclif pack tarballs | ||
| - name: Upload tarball artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: tarballs | ||
| path: | | ||
| cli/dist/**/*.tar.gz | ||
| cli/dist/**/*.tar.xz | ||
| - name: Upload tarballs to autoupdate host (S3) | ||
| if: ${{ secrets.AWS_ACCESS_KEY_ID != '' && secrets.AWS_SECRET_ACCESS_KEY != '' && secrets.AWS_REGION != '' }} | ||
| run: pnpm -C cli exec oclif upload tarballs --root cli --xz | ||
| env: | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| AWS_REGION: ${{ secrets.AWS_REGION }} | ||
| publish-release-assets: | ||
| needs: [package-installers, package-tarballs] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/download-artifact@v4 | ||
| with: | ||
| path: release-assets | ||
| - name: Upload assets to GitHub Release | ||
| uses: softprops/action-gh-release@v2 | ||
| with: | ||
| tag_name: ${{ github.event.release.tag_name }} | ||
| files: | | ||
| release-assets/**/*.pkg | ||
| release-assets/**/*.exe | ||
| release-assets/**/*.deb | ||
| release-assets/**/*.tar.gz | ||
| release-assets/**/*.tar.xz | ||
| fail_on_unmatched_files: true | ||
| overwrite_files: true | ||
| publish-npm: | ||
| needs: [publish-release-assets] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'pnpm' | ||
| - run: pnpm install --frozen-lockfile | ||
| - run: pnpm run build | ||
| - name: Publish @powersync/cli to npm | ||
| run: pnpm -C cli publish --no-git-checks --access public | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||