Skip to content

Commit

Permalink
chore: improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
luislard committed Nov 11, 2024
1 parent 9001131 commit 17bc80a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/update-wordpress-js-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
default: wp-6.6

Check failure on line 7 in .github/workflows/update-wordpress-js-dependencies.yml

View workflow job for this annotation

GitHub Actions / actionlint

input "WP_SCRIPT_DIST_TAG" of workflow_call event has the default value "wp-6.6", but it is also required. if an input is marked as required, its default value will never be used
required: true
type: string
NPM_REGISTRY_DOMAIN:
description: Domain of the private npm registry.
default: https://npm.pkg.github.com/
required: false
type: string
secrets:
GITHUB_USER_EMAIL:
description: Email address for the GitHub user configuration.
Expand All @@ -20,6 +25,9 @@ on:
GITHUB_USER_SSH_PUBLIC_KEY:
description: Public SSH key associated with the GitHub user for the token passed as `GITHUB_USER_TOKEN`.
required: false
NPM_REGISTRY_TOKEN:
description: Authentication for the private npm registry.
required: false

jobs:
update-dependencies:
Expand All @@ -32,6 +40,8 @@ jobs:
GITHUB_USER_SSH_KEY: ${{ secrets.DEPLOYBOT_SSH_PRIVATE_KEY }}

Check failure on line 40 in .github/workflows/update-wordpress-js-dependencies.yml

View workflow job for this annotation

GitHub Actions / actionlint

property "deploybot_ssh_private_key" is not defined in object type {actions_runner_debug: string; actions_step_debug: string; github_token: string; github_user_email: string; github_user_name: string; github_user_ssh_key: string; github_user_ssh_public_key: string; npm_registry_token: string}
GITHUB_USER_SSH_PUBLIC_KEY: ${{ secrets.DEPLOYBOT_SSH_PUBLIC_KEY }}

Check failure on line 41 in .github/workflows/update-wordpress-js-dependencies.yml

View workflow job for this annotation

GitHub Actions / actionlint

property "deploybot_ssh_public_key" is not defined in object type {actions_runner_debug: string; actions_step_debug: string; github_token: string; github_user_email: string; github_user_name: string; github_user_ssh_key: string; github_user_ssh_public_key: string; npm_registry_token: string}
WP_SCRIPT_DIST_TAG: ${{ github.event.client_payload.wp_version || inputs.WP_SCRIPT_DIST_TAG }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
NPM_REGISTRY_DOMAIN: "https://npm.pkg.github.com/"

steps:
- name: Checkout
Expand Down Expand Up @@ -86,6 +96,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: ${{ env.NPM_REGISTRY_DOMAIN }}
cache: ${{ env.NODE_CACHE_MODE }}


Expand Down

0 comments on commit 17bc80a

Please sign in to comment.