-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
619f4a0
commit 0b1de7d
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |