diff --git a/.github/workflows/deploy-web-app.yml b/.github/workflows/deploy-web-app.yml index bdd34c3..c10b89f 100644 --- a/.github/workflows/deploy-web-app.yml +++ b/.github/workflows/deploy-web-app.yml @@ -1,6 +1,10 @@ name: Deploy Web app and Infrastructure on: workflow_dispatch +permissions: + id-token: write + contents: read + jobs: main: runs-on: ubuntu-20.04 @@ -9,12 +13,24 @@ jobs: with: submodules: recursive + - name: Setup Node v20.10 + uses: actions/setup-node@v4 + with: + node-version: 20.10 + # We need foundry for contract types - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 with: version: nightly + - name: Setup AWS credentials + uses: aws-actions/configure-aws-credentials@v2 + with: + aws-region: ap-south-1 + role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} + role-session-name: FinthetixDeploymentSession + - name: Install node dependencies run: | cd web-app/infra diff --git a/.github/workflows/quality-check.yml b/.github/workflows/quality-check.yml index cc8d73a..f915e38 100644 --- a/.github/workflows/quality-check.yml +++ b/.github/workflows/quality-check.yml @@ -55,6 +55,11 @@ jobs: with: version: nightly + - name: Setup Node v20.10 + uses: actions/setup-node@v4 + with: + node-version: 20.10 + - name: Install node dependencies run: | cd web-app/infra