-
Notifications
You must be signed in to change notification settings - Fork 4
86 lines (65 loc) · 1.97 KB
/
release-xsuite-lightsimulnet.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
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
79
80
81
82
83
84
85
86
name: Release xsuite-lightsimulnet
on:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [macos-13, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js & pnpm
uses: ./.github/actions/node-pnpm
- name: Use Golang
uses: actions/setup-go@v5
with:
go-version: 1.19
cache-dependency-path: xsuite-lightsimulnet/src/go.sum
- name: Build xsuite-lightsimulnet
run: pnpm build-xsuite-lightsimulnet
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: package-${{ matrix.os }}
path: |
xsuite-lightsimulnet-darwin-amd64/bin/lsproxy
xsuite-lightsimulnet-linux-amd64/bin/lsproxy
test:
needs: build
strategy:
matrix:
os: [macos-13, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download package
uses: actions/download-artifact@v4
with:
pattern: package-*
merge-multiple: true
- name: Use Node.js & pnpm
uses: ./.github/actions/node-pnpm
- name: Test xsuite-lightsimulnet
run: pnpm test-xsuite-lightsimulnet
publish:
needs: test
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download package
uses: actions/download-artifact@v4
with:
pattern: package-*
merge-multiple: true
- name: Use Node.js & pnpm
uses: ./.github/actions/node-pnpm
with:
node-registry-url: "https://registry.npmjs.org"
- name: Publish xsuite-lightsimulnet packages to NPM
run: git config core.fileMode false && pnpm --filter "@xsuite/light-simulnet*" publish --publish-branch dev --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}