Skip to content

Commit

Permalink
fix: upgrade github action dependencies to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
samwel141 committed Nov 4, 2024
1 parent c4c8564 commit 1d62c22
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
NO_NEED_TO_BUILD: ${{ steps.resolver.outputs.NO_NEED_TO_BUILD }}

steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: |
echo "::debug:: begin preparing...";
echo "::debug:: branch to release: $GITHUB_REF_NAME"
Expand Down Expand Up @@ -79,9 +79,9 @@ jobs:
if: |
!contains(github.event.head_commit.message, 'skip-ci') && !contains(needs.prepare.outputs.NO_NEED_TO_BUILD, 'true')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
- name: npm clean install
Expand Down Expand Up @@ -115,11 +115,11 @@ jobs:
github.repository == ${{ github.env.repository }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
# install dependencies and run semantic-release
Expand All @@ -136,9 +136,9 @@ jobs:
github.event_name == 'push' &&
github.repository == ${{ github.env.repository }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download bundled client resources
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: client-bundle
path: build-dev
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
S3_BUCKET_SECRET_NAME: ${{ steps.resolver.outputs.S3_BUCKET_SECRET_NAME }}
CDN_ID_SECRET_NAME: ${{ steps.resolver.outputs.CDN_ID_SECRET_NAME }}
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# have to checkout master, to read releaserc, which means we must update the rc file in master with the newest settings
ref: v2
Expand Down Expand Up @@ -101,11 +101,11 @@ jobs:
if: |
!contains(github.event.head_commit.message, 'skip-ci')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.version }}
- name: Use Node.js 20.x
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: npm clean install
Expand Down Expand Up @@ -142,12 +142,12 @@ jobs:
echo "s3: ${{ needs.prepare.outputs.S3_BUCKET_SECRET_NAME }}"
echo "cdn: ${{ needs.prepare.outputs.CDN_ID_SECRET_NAME }}"
- name: Download bundled frontend resources
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: frontend-bundle
path: build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_KEY_ID_PROD }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_PROD }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/treetracker-wallet-admin-pr.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: CI/CD Pipeline

on:
Expand All @@ -19,9 +16,9 @@ jobs:
if: |
!contains(github.event.head_commit.message, 'skip-ci')
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
- name: npm clean install
Expand Down

0 comments on commit 1d62c22

Please sign in to comment.