diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..43c167f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,12 @@ +name: ci + +on: + pull_request: + branches: + - "**" + +jobs: + lint_test: + uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@v0.9.0 + with: + run-build: true diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..93e6fff --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,13 @@ +name: publish + +on: + workflow_dispatch: + +jobs: + lint_test: + uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@v0.9.0 + secrets: inherit + with: + run-build: true + publish: true + publish-command: 'npm publish' diff --git a/.github/workflows/publish_canary.yaml b/.github/workflows/publish_canary.yaml new file mode 100644 index 0000000..e53c8fd --- /dev/null +++ b/.github/workflows/publish_canary.yaml @@ -0,0 +1,13 @@ +name: publish_canary + +on: + workflow_dispatch: + +jobs: + lint_test: + uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@v0.9.0 + secrets: inherit + with: + run-build: true + publish: true + publish-command: 'npm publish --tag canary' diff --git a/package.json b/package.json index 692b42c..3134578 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "babylon-proto-ts", + "name": "@babylonlabs-io/babylon-proto-ts", "version": "0.0.1", "main": "index.js", "scripts": { @@ -20,5 +20,8 @@ }, "dependencies": { "@bufbuild/protobuf": "^2.2.0" + }, + "publishConfig": { + "access": "public" } }