forked from safe-global/safe-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (39 loc) · 1.42 KB
/
main.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: Publish Package
on:
push:
branches:
- master
jobs:
publish:
runs-on: ["self-hosted", "k8s-prod"]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependencies Allowances
run: cd allowances; yarn install --frozen-lockfile
- name: Install Dependencies Dutchx_seller
run: cd dutchx_seller; yarn install --frozen-lockfile
- name: Install Dependencies Recrurring_transfers
run: cd recuring_transfers; yarn install --frozen-lockfile
- name: Build Allowances
run: cd allowances; yarn build
- name: Build Dutchx_seller
run: cd dutchx_seller; yarn build
- name: Build Recrurring_transfers
run: cd recuring_transfers; yarn build
- name: Login to NPM
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
run: echo "//registry.npmjs.org/:_authToken=\${NODE_AUTH_TOKEN}" >> ~/.npmrc
- name: Publish Allowances
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
run: cd allowances; npm publish
- name: Publish Dutchx_Seller
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
run: cd dutchx_seller; npm publish
- name: Publish Recurring_Transfers
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_TOKEN}}
run: cd recuring_transfers; npm publish