forked from uncefact/project-vckit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix version pnpm for github action
Signed-off-by: Nam Hoang <[email protected]>
- Loading branch information
1 parent
46b7fc2
commit c49af42
Showing
3 changed files
with
3,316 additions
and
536 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 |
---|---|---|
|
@@ -29,7 +29,10 @@ jobs: | |
node-version: '18' | ||
|
||
- name: Install pnpm | ||
run: npm install -g [email protected] | ||
run: npm install -g [email protected] | ||
|
||
- name: pnpm version | ||
run: pnpm --version | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
@@ -47,6 +50,12 @@ jobs: | |
- name: Build | ||
run: pnpm build | ||
|
||
- name: Archive artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: explorer | ||
path: packages/demo-explorer/build/explorer | ||
|
||
deploy_to_s3: | ||
needs: install_and_build | ||
runs-on: ubuntu-latest | ||
|
@@ -58,6 +67,12 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: explorer | ||
path: packages/demo-explorer/build/explorer | ||
|
||
- name: Install AWS CLI | ||
run: | | ||
sudo apt-get -q install -y python3-pip | ||
|
@@ -69,14 +84,8 @@ jobs: | |
role-to-assume: ${{ secrets.AWS_ROLE_GITHUB_ACTION_ARN }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Deploy to S3 | ||
run: aws s3 sync packages/demo-explorer/build/explorer/ s3://${{ vars.AWS_S3_BUCKET_NAME }} --acl public-read --delete | ||
run: aws s3 sync packages/demo-explorer/build/explorer/ s3://${{ vars.AWS_S3_BUCKET_NAME }} --delete | ||
|
||
- name: Invalidate CloudFront | ||
run: | | ||
|
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
Oops, something went wrong.