-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.05 KB
/
Copy pathrelease.yml
File metadata and controls
38 lines (36 loc) · 1.05 KB
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
name: Release
on:
push:
tags:
- "*"
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"
- name: Install dependencies and build
run: |
yarn install --frozen-lockfile
yarn build:extension
env:
CI: true
EXTENSION_KEY: ${{ secrets.EXTENSION_KEY }}
VITE_MEASUREMENT_ID: ${{ secrets.VITE_MEASUREMENT_ID }}
VITE_API_SECRET: ${{ secrets.VITE_API_SECRET }}
VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
UPLOAD_SOURCEMAP_TO_SENTRY: "true"
- name: Create zip package
run: |
mkdir -p packages/extension/build
yarn workspace @selection-command/extension zip
- uses: ncipollo/release-action@v1
with:
artifacts: "packages/extension/build/*.zip"