Create workflow for testing safari build #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |