-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 934 Bytes
/
build.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
35
36
37
38
39
40
41
# build extension and publish on merges to main
name: Build and Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Up node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'yarn'
- name: Install dependencies
run: yarn --immutable --immutable-cache
- name: Build
run: yarn build
- name: Zip
run: zip -r dist.zip dist
- name: Publish
if: github.ref == 'refs/heads/main'
uses: Klemensas/chrome-extension-upload-action
with:
refresh-token: ${{ secrets.REFRESH_TOKEN }}
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
file-name: './dist.zip'
app-id: ${{ secrets.APP_ID }}
publish: true