From 581409eba13db9199e458348dd9d11a489e816b0 Mon Sep 17 00:00:00 2001 From: Philipp Bammes Date: Tue, 19 Apr 2022 14:45:19 +0200 Subject: [PATCH] assets-compilation // configure registry using actions/setup-node --- .github/workflows/assets-compilation.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/assets-compilation.yml b/.github/workflows/assets-compilation.yml index 453e26522..af8b394b7 100644 --- a/.github/workflows/assets-compilation.yml +++ b/.github/workflows/assets-compilation.yml @@ -14,8 +14,8 @@ on: required: false type: string NPM_REGISTRY_DOMAIN: - description: Domain of the private npm registry, without protocol and trailing slash. - default: 'npm.pkg.github.com' + description: Domain of the private npm registry, without trailing slash. + default: https://npm.pkg.github.com required: false type: string NODE_VERSION: @@ -42,8 +42,7 @@ jobs: runs-on: ubuntu-latest env: COMPOSER_AUTH: '${{ secrets.COMPOSER_AUTH_JSON }}' - "NPM_CONFIG_${{ inputs.NPM_REGISTRY_SCOPE }}:registry": 'https://${{ inputs.NPM_REGISTRY_DOMAIN }}' - "NPM_CONFIG_//${{ inputs.NPM_REGISTRY_DOMAIN }}/:_authToken": '${{ secrets.NPM_REGISTRY_TOKEN }}' + NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} steps: - name: Checkout uses: actions/checkout@v3 @@ -52,6 +51,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ inputs.NODE_VERSION }} + registry-url: ${{ inputs.NPM_REGISTRY_DOMAIN }} - name: Set up PHP uses: shivammathur/setup-php@v2