diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1bbb42fa..d94788cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,9 @@ jobs: uses: actions/checkout@v4 with: path: ${{ github.workspace }}/${{ env.SERVICE_NAME }} + - name: Install nvm at specific version + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - name: Install prettier using npm run: sudo npm install --global prettier - name: Install jenv @@ -126,6 +129,9 @@ jobs: ref: 'main' fetch-depth: 0 path: ${{ github.workspace }}/${{ env.SERVICE_NAME }} + - name: Install nvm at specific version + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - name: Install git-cliff and prettier using npm run: sudo npm install --global git-cliff prettier - name: Generate changelog @@ -162,6 +168,9 @@ jobs: run: | jenv init - jenv add ${JAVA_HOME_21_X64} + - name: Install nvm at specific version + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - name: Get Date id: get-date run: | @@ -246,6 +255,9 @@ jobs: run: | echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT shell: bash + - name: Install nvm at specific version + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - name: Cache node modules uses: actions/cache@v4 with: diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 23673bae..b5ca3206 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -48,6 +48,9 @@ jobs: jenv init - jenv add ${JAVA_HOME_21_X64} working-directory: ${{ github.workspace }}/${{ env.SERVICE_NAME }}/ + - name: Install nvm at specific version + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - name: Get Date id: get-date run: | diff --git a/.github/workflows/on-pr.yaml b/.github/workflows/on-pr.yaml index 3af98e42..55457fc8 100644 --- a/.github/workflows/on-pr.yaml +++ b/.github/workflows/on-pr.yaml @@ -91,6 +91,9 @@ jobs: uses: actions/checkout@v4 with: path: ${{ github.workspace }}/${{ env.SERVICE_NAME }} + - name: Install nvm at specific version + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - name: Install prettier using npm run: sudo npm install --global prettier - name: Install Hadolint and add to PATH diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml index 8c637e07..30186bf6 100644 --- a/.github/workflows/trivy.yaml +++ b/.github/workflows/trivy.yaml @@ -41,6 +41,9 @@ jobs: run: | jenv init - jenv add ${JAVA_HOME_21_X64} + - name: Install nvm at specific version + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - name: Get Date id: get-date run: |