Skip to content

Commit 9040dff

Browse files
chore: revert build app action (#1370)
1 parent c3667f6 commit 9040dff

File tree

2 files changed

+127
-0
lines changed

2 files changed

+127
-0
lines changed

.github/actions/build/app/action.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: buildapp
2+
description: Build app
3+
4+
inputs:
5+
DIR:
6+
description: 'app directory'
7+
required: true
8+
NAME:
9+
description: 'app name'
10+
required: true
11+
LACE_EXTENSION_KEY:
12+
description: 'Public extended manifest key'
13+
required: true
14+
BUILD_DEV_PREVIEW:
15+
description: 'Build developer preview of Lace'
16+
required: false
17+
default: 'false'
18+
POSTHOG_PRODUCTION_TOKEN_MAINNET:
19+
description: 'Post hog production mainnet token'
20+
required: false
21+
default: ''
22+
POSTHOG_PRODUCTION_TOKEN_PREPROD:
23+
description: 'Post hog production preprod token'
24+
required: false
25+
default: ''
26+
POSTHOG_PRODUCTION_TOKEN_PREVIEW:
27+
description: 'Post hog production preview token'
28+
required: false
29+
default: ''
30+
PRODUCTION_MODE_TRACKING:
31+
description: 'Enable analytics tracking in production'
32+
required: false
33+
default: 'false'
34+
BANXA_LACE_URL:
35+
description: 'Banxa`s integration URL'
36+
required: false
37+
default: 'https://lacewallet.banxa-sandbox.com/'
38+
39+
runs:
40+
using: 'composite'
41+
42+
steps:
43+
- name: Code check
44+
uses: ./.github/actions/check
45+
with:
46+
DIR: ${{ inputs.DIR }}
47+
48+
- name: Build ${{ inputs.NAME }}
49+
run: yarn build
50+
shell: bash
51+
working-directory: ${{ inputs.DIR }}
52+
env:
53+
LACE_EXTENSION_KEY: ${{ inputs.LACE_EXTENSION_KEY }}
54+
BUILD_DEV_PREVIEW: ${{ inputs.BUILD_DEV_PREVIEW }}
55+
POSTHOG_PRODUCTION_TOKEN_MAINNET: ${{ inputs.POSTHOG_PRODUCTION_TOKEN_MAINNET }}
56+
POSTHOG_PRODUCTION_TOKEN_PREPROD: ${{ inputs.POSTHOG_PRODUCTION_TOKEN_PREPROD }}
57+
POSTHOG_PRODUCTION_TOKEN_PREVIEW: ${{ inputs.POSTHOG_PRODUCTION_TOKEN_PREVIEW }}
58+
PRODUCTION_MODE_TRACKING: ${{ inputs.PRODUCTION_MODE_TRACKING }}
59+
BANXA_LACE_URL: ${{ inputs.BANXA_LACE_URL }}
60+
61+
- name: Upload artifact
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: ${{ inputs.NAME }}
65+
path: ${{ inputs.DIR }}/dist

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,68 @@ jobs:
124124
- name: Execute unit tests
125125
uses: ./.github/actions/test/unit
126126

127+
release-pkg:
128+
name: Release package
129+
runs-on: ubuntu-20.04
130+
needs: prepare
131+
132+
steps:
133+
- name: Checkout repository
134+
uses: actions/checkout@v4
135+
136+
- name: Setup Node.js and install dependencies
137+
uses: ./.github/actions/install
138+
with:
139+
WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD_TESTNET }}
140+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
141+
142+
- name: Download packages-common
143+
uses: actions/download-artifact@v4
144+
with:
145+
name: packages-common
146+
path: packages/common/dist
147+
148+
- name: Download packages-cardano
149+
uses: actions/download-artifact@v4
150+
with:
151+
name: packages-cardano
152+
path: packages/cardano/dist
153+
154+
- name: Download packages-translation
155+
uses: actions/download-artifact@v4
156+
with:
157+
name: packages-translation
158+
path: packages/translation/dist
159+
160+
- name: Download packages-core
161+
uses: actions/download-artifact@v4
162+
with:
163+
name: packages-core
164+
path: packages/core/dist
165+
166+
- name: Download packages-staking
167+
uses: actions/download-artifact@v4
168+
with:
169+
name: packages-staking
170+
path: packages/staking/dist
171+
172+
- name: Collect Workflow Telemetry Smoke Tests
173+
uses: catchpoint/workflow-telemetry-action@v2
174+
with:
175+
comment_on_pr: false
176+
177+
- name: Build Lace browser extension
178+
uses: ./.github/actions/build/app
179+
with:
180+
DIR: apps/browser-extension-wallet
181+
NAME: lace-browser-extension
182+
LACE_EXTENSION_KEY: ${{ secrets.MANIFEST_PUBLIC_KEY }}
183+
POSTHOG_PRODUCTION_TOKEN_MAINNET: ${{ startsWith(github.ref, 'refs/heads/release') && secrets.POSTHOG_PRODUCTION_TOKEN_MAINNET || '' }}
184+
POSTHOG_PRODUCTION_TOKEN_PREPROD: ${{ startsWith(github.ref, 'refs/heads/release') && secrets.POSTHOG_PRODUCTION_TOKEN_PREPROD || '' }}
185+
POSTHOG_PRODUCTION_TOKEN_PREVIEW: ${{ startsWith(github.ref, 'refs/heads/release') && secrets.POSTHOG_PRODUCTION_TOKEN_PREVIEW || '' }}
186+
PRODUCTION_MODE_TRACKING: ${{ startsWith(github.ref, 'refs/heads/release') && 'true' || 'false' }}
187+
BANXA_LACE_URL: ${{ startsWith(github.ref, 'refs/heads/release') && 'https://lacewallet.banxa.com/' }}
188+
127189
build:
128190
name: Build Lace
129191
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)