diff --git a/.github/workflows/dont-delete-assets.yml b/.github/workflows/dont-delete-assets.yml index 104cc7c37c..7e543bb821 100644 --- a/.github/workflows/dont-delete-assets.yml +++ b/.github/workflows/dont-delete-assets.yml @@ -17,6 +17,7 @@ on: - main paths: - 'assets/**' + - '.github/workflows/dont-delete-assets.yml' permissions: contents: read @@ -37,7 +38,7 @@ jobs: id: comment env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: src/assets/scripts/deleted-assets-pr-comment.js + run: npm run deleted-assets-pr-comment - name: Find possible previous comment if: ${{ steps.comment.outputs.markdown != '' }} diff --git a/.github/workflows/validate-asset-images.yml b/.github/workflows/validate-asset-images.yml index b1aedec16d..22dd39e7a8 100644 --- a/.github/workflows/validate-asset-images.yml +++ b/.github/workflows/validate-asset-images.yml @@ -9,6 +9,7 @@ on: pull_request: paths: - 'assets/**' + - '.github/workflows/validate-asset-images.yml' permissions: contents: read @@ -24,4 +25,4 @@ jobs: - uses: ./.github/actions/node-npm-setup - name: Validate all asset images - run: tsx src/assets/scripts/validate-asset-images.ts + run: npm run validate-asset-images diff --git a/package.json b/package.json index 9999507eb3..3c2a5bde5a 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "create-acr-token": "tsx src/workflows/acr-create-token.js", "debug": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon --inspect src/frame/server.ts", "delete-orphan-translation-files": "tsx src/workflows/delete-orphan-translation-files.ts", + "deleted-assets-pr-comment": "tsx src/assets/scripts/deleted-assets-pr-comment.ts", "deleted-features-pr-comment": "tsx src/data-directory/scripts/deleted-features-pr-comment.ts", "dev": "cross-env npm start", "find-orphaned-assets": "tsx src/assets/scripts/find-orphaned-assets.ts",