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