Skip to content

Commit

Permalink
Merge pull request #394 from lbl-srg/bumpGhActions
Browse files Browse the repository at this point in the history
Bump version of GH actions
  • Loading branch information
mwetter authored Sep 27, 2024
2 parents 316c9b3 + 7ad4c13 commit 0ee03ca
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/client-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: main
env:
LBL_STAGE: production
LBL_STAGE: production
DEBIAN_FRONTEND: noninteractive
TEMPLATES_FILE_NAME: templates.json
jobs:
Expand All @@ -14,9 +14,9 @@ jobs:
run:
working-directory: server
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Copy templates.json out of the container
run: docker cp $CONTAINER_ID:/server/scripts/templates.json $TEMPLATES_FILE_NAME
- name: Upload templates.json as an artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: template
path: ${{github.workspace}}/${{env.TEMPLATES_FILE_NAME}}
Expand All @@ -50,21 +50,21 @@ jobs:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: client/package-lock.json
- name: Configure AWS CLI
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Update template.json
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: template
path: ${{github.workspace}}/client/src/data
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/server-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ctrl-flow staging deployment

on:
push:
branches: staging
branches: staging
env:
LBL_STAGE: staging
DEBIAN_FRONTEND: noninteractive
Expand All @@ -14,9 +14,9 @@ jobs:
run:
working-directory: server
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Copy templates.json out of the container
run: docker cp $CONTAINER_ID:/server/scripts/templates.json $TEMPLATES_FILE_NAME
- name: Upload templates.json as an artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: template
path: ${{github.workspace}}/${{env.TEMPLATES_FILE_NAME}}
Expand All @@ -50,21 +50,21 @@ jobs:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: client/package-lock.json
- name: Configure AWS CLI
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Update template.json
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: template
path: ${{github.workspace}}/client/src/data
Expand Down Expand Up @@ -97,4 +97,3 @@ jobs:
AWS_REGION: us-east-2
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 0ee03ca

Please sign in to comment.