generated from ecomplus/application-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.19 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
47
name: Publish
on:
push:
branches:
- master
paths:
- 'assets/application.json'
- 'ecomplus-market.json'
- 'hosting/description.md'
- 'hosting/icon.png'
- 'scripts/_constants.js'
- 'scripts/market-publication.js'
- '.github/workflows/publish.yml'
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@v3
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 --ignore-scripts
- name: Run publish script
env:
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
MARKET_TOKEN: ${{ secrets.MARKET_TOKEN }}
run: "npm run publish:market"