make sure all scripts are aliased in package.json (#47375)
This commit is contained in:
@@ -52,7 +52,7 @@ jobs:
|
||||
|
||||
- name: Run broken github/github link check
|
||||
run: |
|
||||
src/links/scripts/check-github-github-links.js broken_github_github_links.md
|
||||
npm run check-github-github-links -- broken_github_github_links.md
|
||||
|
||||
- name: Get title for issue
|
||||
# If the file 'broken_github_github_links.md' got created,
|
||||
|
||||
@@ -41,7 +41,7 @@ jobs:
|
||||
REPORT_AUTHOR: docs-bot
|
||||
REPORT_LABEL: broken content markdown report
|
||||
REPORT_REPOSITORY: github/docs-content
|
||||
run: node src/content-linter/scripts/post-lints.js --path /tmp/error-lints.json
|
||||
run: npm run post-lints -- --path /tmp/error-lints.json
|
||||
|
||||
- uses: ./.github/actions/slack-alert
|
||||
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
|
||||
|
||||
4
.github/workflows/move-content.yml
vendored
4
.github/workflows/move-content.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
||||
src/fixtures/fixtures/content/get-started/quickstart/hello-world.md \
|
||||
src/fixtures/fixtures/content/get-started/quickstart/hello-wurld.md
|
||||
|
||||
node src/content-render/scripts/test-moved-content.js \
|
||||
npm run test-moved-content -- \
|
||||
src/fixtures/fixtures/content/get-started/quickstart/hello-world.md \
|
||||
src/fixtures/fixtures/content/get-started/quickstart/hello-wurld.md
|
||||
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
src/fixtures/fixtures/content/code-security/getting-started \
|
||||
src/fixtures/fixtures/content/code-security/got-started
|
||||
|
||||
node src/content-render/scripts/test-moved-content.js \
|
||||
npm run test-moved-content -- \
|
||||
src/fixtures/fixtures/content/code-security/getting-started \
|
||||
src/fixtures/fixtures/content/code-security/got-started
|
||||
|
||||
|
||||
4
.github/workflows/orphaned-assets-check.yml
vendored
4
.github/workflows/orphaned-assets-check.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
||||
run: |
|
||||
set -e
|
||||
|
||||
filesToRemove=`./src/assets/scripts/find-orphaned-assets.js`
|
||||
filesToRemove=`npm run find-orphaned-assets`
|
||||
[ -z "$filesToRemove" ] && exit 0
|
||||
|
||||
echo $filesToRemove | xargs git rm
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
|
||||
gh pr create \
|
||||
--title "Delete orphaned assets ($date)" \
|
||||
--body "Found with the find-orphaned-assets.js script.\n\nFor more info see https://github.com/github/docs-engineering/blob/main/docs/orphaned-assets.md" \
|
||||
--body "Found with the 'npm run find-orphaned-assets' script.\n\nFor more info see https://github.com/github/docs-engineering/blob/main/docs/orphaned-assets.md" \
|
||||
--repo github/docs-internal \
|
||||
--label docs-content-fr
|
||||
|
||||
|
||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -104,7 +104,7 @@ jobs:
|
||||
|
||||
- name: Check the test fixture data (if applicable)
|
||||
if: ${{ matrix.name == 'fixtures' }}
|
||||
run: ./src/tests/scripts/copy-fixture-data.js --check
|
||||
run: npm run copy-fixture-data -- --check
|
||||
|
||||
# This keeps our fixture content/data in check
|
||||
- name: Check the test fixture content (if applicable)
|
||||
@@ -114,11 +114,11 @@ jobs:
|
||||
run: |
|
||||
# If either of these fail, it means our fixture content's internal
|
||||
# links can and should be updated.
|
||||
./src/links/scripts/update-internal-links.js --dry-run --check --strict \
|
||||
npm run update-internal-links -- --dry-run --check --strict \
|
||||
src/fixtures/fixtures/content \
|
||||
--exclude src/fixtures/fixtures/content/get-started/foo/typo-autotitling.md \
|
||||
--exclude src/fixtures/fixtures/content/get-started/foo/anchor-autotitling.md
|
||||
./src/links/scripts/update-internal-links.js --dry-run --check --strict \
|
||||
npm run update-internal-links -- --dry-run --check --strict \
|
||||
src/fixtures/fixtures/data
|
||||
|
||||
- name: Clone all translations
|
||||
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
env:
|
||||
POPULAR_PAGES_JSON: popular-pages/records/popular-pages.json
|
||||
run: |
|
||||
node src/languages/scripts/create-translation-health-report.js \
|
||||
npm run create-translation-health-report -- \
|
||||
--language ${{ matrix.language }} \
|
||||
--gitref ${{ env.gitref }} \
|
||||
>> $GITHUB_WORKSPACE/translation-health-report.json
|
||||
|
||||
Reference in New Issue
Block a user