Skip to content

Commit 34d5a34

Browse files
committed
Add package.json step
1 parent 0b52fb6 commit 34d5a34

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci-typescript.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ jobs:
2929
mkdir -p ./out/ &&
3030
protoc *.proto --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./out --ts_proto_opt=outputIndex=true
3131
32+
- name: Create package
33+
run: |
34+
cd protobuf_definitions/out
35+
SHORT_SHA=${GITHUB_SHA::8}
36+
echo '{
37+
"name": "@blueye-robotocs/protocol-definitions",
38+
"version": "0.0.0-'${SHORT_SHA}'",
39+
"main": "index.js",
40+
"types": "index.d.ts",
41+
"files": ["."],
42+
"publishConfig": {
43+
"registry": "https://npm.pkg.github.com/"
44+
}
45+
}' > package.json
46+
3247
- name: Publish compiled proto definitions
3348
uses: actions/upload-artifact@v4
3449
with:

0 commit comments

Comments
 (0)