-
Notifications
You must be signed in to change notification settings - Fork 358
51 lines (49 loc) · 1.33 KB
/
publish-typescript-api.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
name: Publish Typescript API
on:
workflow_dispatch:
inputs:
sha:
description: full sha to build the npm package from
required: true
jobs:
publish-typescript-api:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.sha }}
- name: Use Node.js 20.10
uses: actions/setup-node@v3
with:
node-version: 20.10
- name: Build typescript API
run: |
cd typescript-api
npm install
npm run build
- name: Publish typescript API
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
package: typescript-api/build/package.json
update-polkadot-js-for-tests-and-tools:
runs-on: ubuntu-latest
needs: ["publish-typescript-api"]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.sha }}
- name: Use Node.js 20.10
uses: actions/setup-node@v3
with:
node-version: 20.10
- name: Upgrade polkadotjs for tests
run: |
cd test
pnpm install @polkadot/api@latest
- name: Upgrade polkadotjs for tools
run: |
cd tools
npm install @polkadot/api@latest