diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index d290fdb..e8156d2 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -5,6 +5,9 @@ on: required: false type: boolean default: false + secrets: + GITLAB_REGISTRY_TOKEN: + required: true jobs: code_review: @@ -18,11 +21,12 @@ jobs: cache: "npm" - name: Set npm registry access env: - GITLAB_REGISTRY: ${ secrets.GITLAB_REGISTRY_TOKEN } + GITLAB_REGISTRY: ${{ secrets.GITLAB_REGISTRY_TOKEN }} run: | npm config set @polyflix:registry \ https://gitlab.polytech.umontpellier.fr/api/v4/projects/1343/packages/npm/ - echo "//gitlab.polytech.umontpellier.fr/api/v4/projects/1343/packages/npm/:_authToken=$GITLAB_REGISTRY">.npmrc + echo "//gitlab.polytech.umontpellier.fr/api/v4/projects/1343/packages/npm/:_authToken=${{ secrets.GITLAB_REGISTRY_TOKEN }}">.npmrc + echo $GITLAB_REGISTRY - run: npm ci - name: Audit continue-on-error: true