-
Notifications
You must be signed in to change notification settings - Fork 19
52 lines (42 loc) · 1.19 KB
/
release.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
46
47
48
49
50
51
52
name: Release
on:
push:
tags:
- "*"
env:
RELEASE_ENV: true
WIGWAM_INFURA_API_KEY: ${{ secrets.WIGWAM_INFURA_API_KEY }}
WIGWAM_ANALYTICS_API_KEY: ${{ secrets.WIGWAM_ANALYTICS_API_KEY }}
WIGWAM_OPEN_LOGIN_CLIENT_ID: ${{ secrets.WIGWAM_OPEN_LOGIN_CLIENT_ID }}
WIGWAM_NFT_METADATA_PROXY: ${{ secrets.WIGWAM_NFT_METADATA_PROXY }}
jobs:
release:
name: Create release
runs-on: ubuntu-latest
environment: production
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"
- name: Install deps
run: yarn install --frozen-lockfile
- name: Check TypeScript
run: yarn ts
- name: Check ESLint
run: yarn lint
- name: Run tests
run: yarn test
- name: Create app build
run: yarn build:chrome & yarn build:firefox
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: |
dist/prod/chrome.zip
dist/prod/firefox.xpi