-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.03 KB
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
# Install dependencies
- run: yarn
# Tests
- run: yarn check:tsc
- run: yarn check:svelte
- run: yarn test
# Prepare package
- run: echo -e "VITE_FEEDBACK_SERVICE_URL=${{ secrets.FEEDBACK_SERVICE_URL }}\n" > .env.local
- run: yarn package
# Public package
- name: Upload to Chrome Web Store
uses: mobilefirstllc/cws-publish@2.1.1
with:
action: 'upload'
client_id: ${{ secrets.CLIENT }}
client_secret: ${{ secrets.SECRET }}
refresh_token: ${{ secrets.TOKEN }}
extension_id: ${{ secrets.EXTENSION_ID }}
zip_file: 'package.zip'