Skip to content

Commit

Permalink
assets-compilation // configure registry using actions/setup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrann0us committed Apr 19, 2022
1 parent 9fcfe02 commit 581409e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/assets-compilation.yml
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 581409e

Please sign in to comment.