This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
71 lines (70 loc) · 2.18 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Publish Pyth JS packages
on:
release:
types:
- created
jobs:
publish-pyth-common-js:
name: Publish Pyth Common JS
if: ${{ startsWith(github.ref, 'refs/tags/pyth-common-js-v') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: "pyth-common-js"
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: "pyth-common-js"
publish-pyth-evm-js:
name: Publish Pyth EVM JS
if: ${{ startsWith(github.ref, 'refs/tags/pyth-evm-js-v') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: "pyth-evm-js"
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: "pyth-evm-js"
publish-pyth-aptos-js:
name: Publish Pyth Aptos JS
if: ${{ startsWith(github.ref, 'refs/tags/pyth-aptos-js-v') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: "pyth-aptos-js"
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: "pyth-aptos-js"
publish-pyth-terra-js:
name: Publish Pyth Common JS
if: ${{ startsWith(github.ref, 'refs/tags/pyth-terra-js-v') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: "pyth-terra-js"
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: "pyth-terra-js"