Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

impr: CPO-539 Upgrade to Node 18.x & npm v9 #32

impr: CPO-539 Upgrade to Node 18.x & npm v9

impr: CPO-539 Upgrade to Node 18.x & npm v9 #32

name: NPM Check
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
Check:
runs-on: >-
${{ fromJSON(format('{{"cloudconformity": "ubuntu-latest", "v1-cspm-conformity": "ebf-pod-ubuntu-2004-slim@{0}-commitlint"}}', github.run_id))[github.repository_owner] }}
env:
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}
ARTIFACTORY_TOKEN_EMAIL: ${{ secrets.ARTIFACTORY_TOKEN_EMAIL }}
ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL_VIRTUAL }}
steps:
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # refers to actions/checkout@v3.1.0
with:
persist-credentials: false
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # refers to actions/setup-node@v3.5.1
with:
node-version: 18
- run: npm i npm@9 -g
- run: npm config set registry https://$ARTIFACTORY_URL
- run: npm config set replace-registry-host npm.pkg.github.com
- run: npm config set //$ARTIFACTORY_URL:_auth "$(echo -n $ARTIFACTORY_TOKEN_EMAIL:$ARTIFACTORY_TOKEN | base64 -w 0)"
- run: npm config set //$ARTIFACTORY_URL:email "$ARTIFACTORY_TOKEN_EMAIL"
- run: npm install
- run: npm run check