-
Notifications
You must be signed in to change notification settings - Fork 20
48 lines (44 loc) · 1.3 KB
/
npm_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
---
# Publishing all NPM packages to the npm registry when the version number changes
# See https://github.com/marketplace/actions/npm-publish for more information
name: Publish Packages to npmjs
on:
push:
branches: development
jobs:
# Publish the TypeScript bindings to the NPM registry
publish-typescript-bindings:
runs-on: ubuntu-latest
defaults:
run:
working-directory: bindings
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: bindings
access: 'public'
# Publish the Tari Wallet Daemon client to the NPM registry
publish-wallet-daemon-client:
runs-on: ubuntu-latest
needs: publish-typescript-bindings
defaults:
run:
working-directory: clients/javascript/wallet_daemon_client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm ci
- run: npm run build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: clients/javascript/wallet_daemon_client
access: 'public'