-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.06 KB
/
publish.yaml
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
name: Publish
on:
create:
tags:
- '*'
jobs:
generate_proto:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run generate_pb
- name: Cache proto
uses: actions/upload-artifact@v2
with:
name: proto
path: ./src/config/generated.*
build:
runs-on: ubuntu-20.04
needs: generate_proto
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16"
registry-url: 'https://registry.npmjs.org'
scope: '@hypertrace'
- run: npm install
- run: npm install -g [email protected]
- uses: actions/download-artifact@v2
with:
name: proto
path: ./src/config/
- run: npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLIC_PUBLISH_TOKEN }}