Skip to content

Commit

Permalink
test release only tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
eemmiillyy committed Jul 17, 2024
1 parent 619f4a0 commit 0b1de7d
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0b1de7d

Please sign in to comment.