forked from polkadot-js/extension
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 1.22 KB
/
gnerate-extension-bundles.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
name: Generate extension bundles
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+' # this is for internal testing builds
jobs:
generate-extension-bundles:
name: Generate extension bundles
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js version from .nvmrc
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
- run: yarn install --immutable | grep -v 'YN0013' # as in the polkadot workflows
- run: yarn download-chains-metadata
# we are setting the version on the source code (before the build phase), because the source code
# is zipped and sent to mozilla for verification, so that the actual bundle needs to be buildable from it
- run: yarn set-signer-version --version=${{ github.ref_name }}
- run: yarn polkadot-dev-build-ts
- run: yarn build:zip
- uses: actions/upload-artifact@v4
with:
name: signer-extension-bundles-v${{ github.ref_name }}
retention-days: 30
if-no-files-found: error
path: |
extension-chrome.zip
extension-firefox.zip
source-code.zip