-
-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (34 loc) · 984 Bytes
/
action.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
name: Build Chrome extension
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-extension:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
# - name: Install packages
# run: npm install
# shell: bash
# - name: Install packages
# run: npm ci
# shell: bash
# - name: Build extension
# run: npm run build --if-present
# shell: bash
- name: Pack extension
working-directory: .
run: zip -r extension-${{ github.event.pull_request.head.sha }}.zip *
shell: bash
- name: Upload extension archive
uses: actions/upload-artifact@v3
with:
name: extension-${{ github.sha }}
path: out/extension-${{ github.event.pull_request.head.sha }}.zip