From 0b1de7ddfa5c356dd6493f9b33c065637d0076cd Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 17 Jul 2024 10:31:27 +0200 Subject: [PATCH] test release only tarballs --- .github/workflows/test-release.yml | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/test-release.yml diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml new file mode 100644 index 000000000..535d6d47a --- /dev/null +++ b/.github/workflows/test-release.yml @@ -0,0 +1,56 @@ +name: Test Release + +on: + push: + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +permissions: + id-token: write + contents: write + packages: write + pages: write + pull-requests: write + +jobs: + release: + name: Test release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits + fetch-depth: 0 + # This makes the PR pushed to use GITHUB_TOKEN and trigger the checks + persist-credentials: false + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Use Node.js ${{ steps.config.outputs.NVMRC }} + uses: actions/setup-node@v3 + with: + node-version: ${{ steps.config.outputs.NVMRC }} + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm build + + - name: Configure AWS Credentials for production + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.CLI_ASSETS_UPLOAD_ROLE }} + aws-region: us-east-1 + mask-aws-account-id: 'no' + + - name: Build standalone tarballs + run: cd cli && pnpm oclif pack tarballs + - name: List all the downloaded files + run: ls cli + - name: Upload tarballs to S3 + run: | + cd cli + pnpm oclif upload tarballs