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