From bdcbc38450949e0f211c3b1d0d661b81cafa2c12 Mon Sep 17 00:00:00 2001 From: Nour Alharithi Date: Mon, 16 Dec 2024 09:28:58 -0800 Subject: [PATCH] specify node version in workflows --- .github/workflows/mainnet-beta.yml | 8 +++++++- .github/workflows/master.yml | 10 ++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mainnet-beta.yml b/.github/workflows/mainnet-beta.yml index ecfa0c8..69e5fbc 100644 --- a/.github/workflows/mainnet-beta.yml +++ b/.github/workflows/mainnet-beta.yml @@ -8,6 +8,12 @@ jobs: build: runs-on: ubicloud steps: + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: '20.18.x' + registry-url: 'https://registry.npmjs.org' + - name: Checkout Code uses: actions/checkout@v3 with: @@ -62,4 +68,4 @@ jobs: BRANCH_NAME: ${{ github.ref_name }} run: | kubectl rollout restart -n $BRANCH_NAME deployment/usermap-publisher-app - kubectl rollout restart -n $BRANCH_NAME deployment/usermap-publisher-app-local \ No newline at end of file + kubectl rollout restart -n $BRANCH_NAME deployment/usermap-publisher-app-local diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 0ed6f04..3fddeb0 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -8,6 +8,12 @@ jobs: build: runs-on: ubicloud steps: + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: '20.18.x' + registry-url: 'https://registry.npmjs.org' + - name: Checkout Code uses: actions/checkout@v3 with: @@ -23,7 +29,7 @@ jobs: - name: Log in to Amazon ECR id: login-ecr uses: aws-actions/amazon-ecr-login@v2 - + - name: Build and push uses: docker/build-push-action@v6 env: @@ -62,4 +68,4 @@ jobs: BRANCH_NAME: ${{ github.ref_name }} run: | kubectl rollout restart -n $BRANCH_NAME deployment/usermap-publisher-app - kubectl rollout restart -n $BRANCH_NAME deployment/usermap-publisher-app-local \ No newline at end of file + kubectl rollout restart -n $BRANCH_NAME deployment/usermap-publisher-app-local