generated from antfu-collective/vitesse-webext
-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 821 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
name: Build and Pack
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install pnpm
run: curl -f https://get.pnpm.io/v6.js | node - add --global pnpm
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Pack CRX
run: pnpm run pack:crx
- name: Pack XPI
run: pnpm run pack:xpi
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: extension-artifacts
path: |
extension
extension.crx
extension.xpi