Skip to content

Commit

Permalink
specify node version in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Dec 16, 2024
1 parent eb8b97a commit bdcbc38
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/mainnet-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
kubectl rollout restart -n $BRANCH_NAME deployment/usermap-publisher-app-local
10 changes: 8 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
kubectl rollout restart -n $BRANCH_NAME deployment/usermap-publisher-app-local

0 comments on commit bdcbc38

Please sign in to comment.