From 56d8e50d99fb71492d34c4fd99a3ee5383ddec81 Mon Sep 17 00:00:00 2001 From: Darius Jahandarie Date: Sat, 18 Mar 2023 11:59:18 +0900 Subject: Move manifest.json schema validator from create-prerelease-on-tag to ci.yml, and make it check for mv3 --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/create-prerelease-on-tag.yml | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b7fc69c..c62c9893 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,5 +46,11 @@ jobs: env: CI: true + - name: Validate manifest.json of the extension + uses: cardinalby/schema-validator-action@c2da05377e89dd0c9b7be9420da0b3534b1efcce # pin@v1 + with: + file: ext/manifest.json + schema: "https://json.schemastore.org/chrome-manifest.json" + - name: Build run: npm run test-build diff --git a/.github/workflows/create-prerelease-on-tag.yml b/.github/workflows/create-prerelease-on-tag.yml index e46f85f4..2db723fb 100644 --- a/.github/workflows/create-prerelease-on-tag.yml +++ b/.github/workflows/create-prerelease-on-tag.yml @@ -14,12 +14,6 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Validate manifest.json of the extension - uses: cardinalby/schema-validator-action@c2da05377e89dd0c9b7be9420da0b3534b1efcce # pin@v1 - with: - file: ext/manifest.json - schema: "https://json.schemastore.org/webextension.json" - - name: Setup node uses: actions/setup-node@v3 with: -- cgit v1.2.3