generated from foxglove/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (41 loc) · 1.41 KB
/
ci.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
name: CI
on:
push:
branches: main
tags:
- "omgidl-parser/v*"
- "omgidl-serialization/v*"
- "ros2idl-parser/v*"
pull_request:
branches: "*"
jobs:
all:
name: all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.x
registry-url: https://registry.npmjs.org
cache: yarn
- run: corepack enable yarn
- run: yarn install --frozen-lockfile
- run: yarn run build
- run: yarn run lint:ci
- run: yarn run test
- name: Publish `omgidl-parser` to NPM
if: ${{ startsWith(github.ref, 'refs/tags/omgidl-parser/v') }}
run: yarn workspace @foxglove/omgidl-parser npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish `omgidl-serialization` to NPM
if: ${{ startsWith(github.ref, 'refs/tags/omgidl-serialization/v') }}
run: yarn workspace @foxglove/omgidl-serialization npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Publish `ros2idl-parser` to NPM
if: ${{ startsWith(github.ref, 'refs/tags/ros2idl-parser/v') }}
run: yarn workspace @foxglove/ros2idl-parser npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}