Skip to content

Commit c5d0b57

Browse files
committed
ci: publish in separate job
1 parent ed1e20b commit c5d0b57

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,23 @@ jobs:
3131
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3232
client_id: ${{ secrets.CHROME_CLIENT }}
3333
client_secret: ${{ secrets.CHROME_CLIENT_SECRET }}
34-
refresh_token: ${{ secrets.CHROME_REFRESH_TOKEN }}
34+
refresh_token: ${{ secrets.CHROME_REFRESH_TOKEN }}
35+
36+
publish-extension:
37+
runs-on: ubuntu-latest
38+
needs: js-test-and-release
39+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version: lts/*
45+
cache: npm
46+
- run: npm ci
47+
- run: npm run package
48+
- run: npm run publish:chrome-store
49+
env:
50+
CLIENT_ID: ${{ secrets.CHROME_CLIENT }}
51+
CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }}
52+
REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }}
53+
EXTENSION_ID: ${{ vars.EXTENSION_ID }}

0 commit comments

Comments
 (0)