-
Notifications
You must be signed in to change notification settings - Fork 61
56 lines (46 loc) · 1.54 KB
/
extension.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Publish devtools extension
on:
push:
branches:
- main
workflow_dispatch:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message, 'applying package updates') || github.event_name == 'workflow_dispatch' }}
outputs:
status: ${{ steps.verify-extension-changed.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Verify extension has changed
uses: tj-actions/changed-files@v41
id: verify-extension-changed
with:
files: |
packages/devtools/package.json
deploy:
runs-on: ubuntu-latest
needs: check
if: ${{ needs.check.outputs.status == 'true' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: '20'
- run: yarn install --immutable
- run: yarn nx run-many --target=build --projects=@griffel/devtools --parallel --max-parallel=3
- run: yarn nx run @griffel/devtools:pack-extension
- name: Upload extension
uses: mobilefirstllc/cws-publish@latest
with:
action: 'publish'
refresh_token: ${{ secrets.CHROME_EXT_REFRESH_TOKEN }}
client_id: ${{ secrets.CHROME_EXT_CLIENT_ID }}
client_secret: ${{ secrets.CHROME_EXT_CLIENT_SECRET }}
extension_id: ${{ secrets.CHROME_EXT_APP_ID }}
zip_file: ./dist/packages/ext.zip