Skip to content

Commit

Permalink
chore: Update actions/checkout and actions/setup-node versions to lat…
Browse files Browse the repository at this point in the history
…est stable versions
  • Loading branch information
tsubakimoto committed Jun 30, 2024
1 parent c2f171d commit 57dca05
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/node-express-with-zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
workflow_dispatch:

env:
NODE_VERSION: '16.x'
WORKING_DIRECTORY: nodejs/express
PACKAGE_NAME: node-app
ARCHIVE_NAME: express.zip
Expand All @@ -26,12 +25,12 @@ jobs:
working-directory: ${{ env.WORKING_DIRECTORY }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
node-version: '16.x'
cache: 'npm'
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}

Expand All @@ -49,7 +48,7 @@ jobs:
working-directory: ${{ env.WORKING_DIRECTORY }}

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}
path: ${{ env.WORKING_DIRECTORY }}/${{ env.ARCHIVE_NAME }}
Expand All @@ -60,15 +59,14 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}

- name: Az CLI Login
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{ vars.AZURE_CLIENT_ID }}
tenant-id: ${{ vars.AZURE_TENANT_ID }}
Expand All @@ -78,7 +76,7 @@ jobs:
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ vars.AZURE_WEBAPP_NAME }}
app-name: ${{ vars.AZURE_WEBAPP_NAME }}-express
slot-name: 'Production'
package: ${{ env.ARCHIVE_NAME }}

Expand Down

0 comments on commit 57dca05

Please sign in to comment.