Skip to content

Commit

Permalink
Create workflow for testing safari build
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmurray-codecov committed Oct 28, 2024
1 parent a4c016a commit bddf157
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/safari.yml
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

0 comments on commit bddf157

Please sign in to comment.