-
Notifications
You must be signed in to change notification settings - Fork 124
54 lines (43 loc) · 1.37 KB
/
sdk-release.js.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
name: Publish to npm
on:
push:
tags:
- "sdk-v**"
jobs:
npm:
name: Publish to npm
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.1.0]
steps:
- name: 🧮 Checkout code
uses: actions/checkout@v3
- name: Install tools
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: 🔧 Yarn cache
uses: actions/setup-node@v3
with:
cache: "yarn"
registry-url: "https://registry.npmjs.org"
- name: 🔨 Install dependencies
run: "yarn install --prefer-offline --frozen-lockfile"
- name: Run Unit tests
run: "yarn test"
- name: Run Lint Checks
run: "yarn run lint-ci"
- name: Run Typescript Checks
run: "yarn run tsc"
- name: Run SDK tests
run: "yarn test:sdk"
- name: Build SDK
run: "yarn build:sdk"
- name: 🚀 Publish to npm
id: npm-publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./target