From bddf15708dd27a495db557d7e23c3c90749b9440 Mon Sep 17 00:00:00 2001 From: Spencer Murray Date: Mon, 28 Oct 2024 10:36:35 -0400 Subject: [PATCH] Create workflow for testing safari build --- .github/workflows/ci.yml | 2 +- .github/workflows/safari.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/safari.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9987059..9b96746 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '18.x' + node-version: "18.x" - run: npm ci - name: Build extension run: npm run build diff --git a/.github/workflows/safari.yml b/.github/workflows/safari.yml new file mode 100644 index 0000000..9497a84 --- /dev/null +++ b/.github/workflows/safari.yml @@ -0,0 +1,23 @@ +name: safari-build +on: push +jobs: + publish: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "18.x" + - run: npm ci + - name: Build extension + run: npm run build + env: + SENTRY_DSN: ${{ vars.SENTRY_DSN }} + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + - run: | + jq --arg version "$VERSION" '.version=$version' dist/manifest.json > manifest.tmp.json \ + && mv manifest.tmp.json dist/manifest.json + env: + VERSION: "0.4.6" + - name: Convert to Safari extension + run: xcrun safari-web-extension-converter ./dist