Write on the margins of the internet. Powered by the AT Protocol. margin.at
extension web atproto comments

refactor release extension workflow to use bun

+7 -9
+7 -9
.github/workflows/release-extension.yml
··· 15 15 - name: Checkout code 16 16 uses: actions/checkout@v4 17 17 18 - - name: Setup Node.js 19 - uses: actions/setup-node@v4 18 + - name: Setup Bun 19 + uses: oven-sh/setup-bun@v2 20 20 with: 21 - node-version: '20' 22 - cache: 'npm' 23 - cache-dependency-path: extension/package-lock.json 21 + bun-version: latest 24 22 25 23 - name: Install dependencies 26 24 run: | 27 25 cd extension 28 - npm ci 26 + bun install 29 27 30 28 - name: Update Version 31 29 run: | ··· 38 36 - name: Build Chrome Extension 39 37 run: | 40 38 cd extension 41 - npm run zip 39 + bun run zip 42 40 cp .output/margin-extension-*.zip ../margin-extension-chrome.zip 43 41 44 42 - name: Build Firefox Extension 45 43 run: | 46 44 cd extension 47 - npm run zip:firefox 45 + bun run zip:firefox 48 46 cp .output/margin-extension-*-firefox.zip ../margin-extension-firefox.xpi 49 47 cp .output/margin-extension-*-sources.zip ../margin-extension-sources.zip 50 48 ··· 90 88 cd extension/.output/firefox-mv3 91 89 COMMIT_MSG=$(git log -1 --pretty=%s) 92 90 echo "{\"release_notes\": {\"en-US\": \"$COMMIT_MSG\"}, \"notes\": \"Thank you!\"}" > amo-metadata.json 93 - npx web-ext sign --channel=listed --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET --source-dir=. --artifacts-dir=../../../web-ext-artifacts --approval-timeout=300000 --amo-metadata=amo-metadata.json || echo "Web-ext sign timed out (expected), continuing..." 91 + bunx web-ext sign --channel=listed --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET --source-dir=. --artifacts-dir=../../../web-ext-artifacts --approval-timeout=300000 --amo-metadata=amo-metadata.json || echo "Web-ext sign timed out (expected), continuing..." 94 92 rm amo-metadata.json 95 93 cd ../../.. 96 94