diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index d11888f..d81a8d7 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -30,7 +30,7 @@ jobs: git push --tags - name: Zip - run: cd dist && zip -r extension.zip build + run: bun run zip - name: Get NPM version id: package-version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e22401..5d81f7b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: run: bun run build - name: Zip - run: cd dist && zip -r extension.zip build + run: bun run zip - name: Submit to Chrome Web Store uses: PlasmoHQ/bpp@v3.5.0 diff --git a/package.json b/package.json index b21e531..064df49 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "prepare": "bun run build:ds", "symbols": "bun scripts/symbols.ts", "sync": "git submodule init && git submodule update", - "typecheck": "tsc --noEmit" + "typecheck": "tsc --noEmit", + "zip": "web-ext build --source-dir ./dist/build --artifacts-dir ./dist --filename extension.zip" }, "dependencies": { "@capsizecss/core": "^3.1.0",