Skip to content

Commit

Permalink
build: update workflows for node v18
Browse files Browse the repository at this point in the history
  • Loading branch information
wei2912 committed Jan 4, 2024
1 parent 323b7e9 commit 7922f97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-lambda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache Node modules
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-lambda-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-lambda-
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: export VERSION_AIRTABLE=`node -p -e "require('./package-lock.json').packages['node_modules/airtable'].version"`
Expand All @@ -46,7 +46,7 @@ jobs:
- run: cp -r node_modules/ lambda/

- name: Upload build
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: mentorship-page-lambda-${{ github.sha }}
path: lambda/
Expand All @@ -56,14 +56,14 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: mentorship-page-lambda-${{ github.sha }}
path: lambda/

- run: cd lambda && zip -r ../lambda.zip .
- name: Deploy lambda
uses: appleboy/[email protected].5
uses: appleboy/[email protected].9
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache Node modules
uses: actions/cache@v1
Expand All @@ -19,7 +19,7 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down

0 comments on commit 7922f97

Please sign in to comment.