generated from ecomplus/application-starter
-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (39 loc) · 1.15 KB
/
publish.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
name: Publish
on:
push:
branches:
- master
paths:
- 'assets/application.json'
- 'ecomplus-market.json'
- 'functions/public/description.md'
- 'functions/public/icon.png'
- 'scripts/_constants.js'
- 'scripts/market-publication.js'
jobs:
pulish:
name: Publish app to E-Com Plus Market
runs-on: ubuntu-latest
if: github.repository != 'ecomplus/application-starter'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org/'
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install root dependencies
run: npm ci --only=production
- name: Run publish script
env:
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
MARKET_TOKEN: ${{ secrets.MARKET_TOKEN }}
run: "npm run publish:market"