-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create workflow for testing safari build
- Loading branch information
1 parent
a4c016a
commit bddf157
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |