-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (65 loc) · 2.28 KB
/
Copy pathpublish-dev.yaml
File metadata and controls
78 lines (65 loc) · 2.28 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Publish Development Artifacts
on:
push:
branches:
- master
- ci/*
- release/*
pull_request:
branches:
- master
jobs:
gcp:
name: Publish to GCP
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
submodules: true
- name: Auth GCP
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.GCP_ARTIFACTS_KEY }}
- name: Setup GCP
uses: google-github-actions/setup-gcloud@v1
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "24.x"
always-auth: true
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install JS dependencies
run: pnpm install
- name: Build
run: pnpm -r run build
- name: Pack - core
run: pnpm pack
working-directory: packages/core
- name: Pack - native
run: pnpm pack
working-directory: packages/node
- name: Pack - web
run: pnpm pack
working-directory: packages/web
env:
NO_NPM_BINARY: "true"
- name: Check Version
id: package
uses: codex-team/action-nodejs-package-info@v1.1
with:
path: packages/core
- name: Upload to GCP
run: |
gsutil cp -n packages/core/*.tgz gs://artifacts.emerald.cash/builds/emerald-api-js/${GITHUB_SHA::8}/
gsutil cp -n packages/node/*.tgz gs://artifacts.emerald.cash/builds/emerald-api-js/${GITHUB_SHA::8}/
gsutil cp -n packages/web/*.tgz gs://artifacts.emerald.cash/builds/emerald-api-js/${GITHUB_SHA::8}/
- name: Links to published artifacts
run: |
echo "Publishing artifacts to:"
echo " https://artifacts.emerald.cash/builds/emerald-api-js/${GITHUB_SHA::8}/emeraldpay-api-${{ steps.package.outputs.version }}.tgz"
echo " https://artifacts.emerald.cash/builds/emerald-api-js/${GITHUB_SHA::8}/emeraldpay-api-node-${{ steps.package.outputs.version }}.tgz"
echo " https://artifacts.emerald.cash/builds/emerald-api-js/${GITHUB_SHA::8}/emeraldpay-api-web-${{ steps.package.outputs.version }}.tgz"