From 746d828571b67fa0dc81b4d416cb1ca733f2a38b Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Thu, 17 Oct 2024 17:35:59 +0300 Subject: [PATCH 1/9] Add CI --- .github/workflows/ci.yml | 13 +++++++++++++ .github/workflows/publish.yaml | 14 ++++++++++++++ .github/workflows/publish_canary.yaml | 19 +++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/publish.yaml create mode 100644 .github/workflows/publish_canary.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3077293 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,13 @@ +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-lint: true + run-build: true diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..0088880 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,14 @@ +name: publish_canary + +on: + workflow_dispatch: + +jobs: + lint_test: + uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push + secrets: inherit + with: + run-lint: true + 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..e7aa69f --- /dev/null +++ b/.github/workflows/publish_canary.yaml @@ -0,0 +1,19 @@ +name: publish_canary + +on: + push: + branches: + - "dev" + tags: + - '*' + + +jobs: + lint_test: + uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push + secrets: inherit + with: + run-lint: true + run-build: true + publish: true + publish-command: 'npm publish --tag canary' From 32fe00b8a7b97f18d50f87a8b6d9496f5bc846b3 Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Thu, 17 Oct 2024 17:36:37 +0300 Subject: [PATCH 2/9] canary --- .github/workflows/publish_canary.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/publish_canary.yaml b/.github/workflows/publish_canary.yaml index e7aa69f..87e16ac 100644 --- a/.github/workflows/publish_canary.yaml +++ b/.github/workflows/publish_canary.yaml @@ -1,12 +1,7 @@ name: publish_canary on: - push: - branches: - - "dev" - tags: - - '*' - + workflow_dispatch: jobs: lint_test: From 26f288ceeb9c7e88df2f672a71d3ce4acc90af75 Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Thu, 17 Oct 2024 17:38:33 +0300 Subject: [PATCH 3/9] publish --- .github/workflows/publish.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0088880..a790720 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,4 +1,4 @@ -name: publish_canary +name: publish on: workflow_dispatch: From 40602438e3ca1cab62e2bca7b3baab18b7c3f12d Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Thu, 17 Oct 2024 17:39:06 +0300 Subject: [PATCH 4/9] push --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3077293..c41a275 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: jobs: lint_test: - uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@v0.9.0 + uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push with: run-lint: true run-build: true From ebdae86c4b803574e8c89d027057317a519f2e17 Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Thu, 17 Oct 2024 17:44:03 +0300 Subject: [PATCH 5/9] no lint --- .github/workflows/ci.yml | 1 - .github/workflows/publish.yaml | 1 - .github/workflows/publish_canary.yaml | 1 - 3 files changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c41a275..f507a4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,5 +9,4 @@ jobs: lint_test: uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push with: - run-lint: true run-build: true diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a790720..52ad6d4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -8,7 +8,6 @@ jobs: uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push secrets: inherit with: - run-lint: true run-build: true publish: true publish-command: 'npm publish' diff --git a/.github/workflows/publish_canary.yaml b/.github/workflows/publish_canary.yaml index 87e16ac..00c39b2 100644 --- a/.github/workflows/publish_canary.yaml +++ b/.github/workflows/publish_canary.yaml @@ -8,7 +8,6 @@ jobs: uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push secrets: inherit with: - run-lint: true run-build: true publish: true publish-command: 'npm publish --tag canary' From cc91100f4a2e3bcbeaf30c7f4438fd911b4575bd Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Thu, 17 Oct 2024 17:45:40 +0300 Subject: [PATCH 6/9] test push --- .github/workflows/publish_canary.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_canary.yaml b/.github/workflows/publish_canary.yaml index 00c39b2..ed530b5 100644 --- a/.github/workflows/publish_canary.yaml +++ b/.github/workflows/publish_canary.yaml @@ -1,7 +1,9 @@ name: publish_canary on: - workflow_dispatch: + pull_request: + branches: + - "**" jobs: lint_test: From 84b7cf6f176cf44e229052f8faae886bc86c5a5e Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Thu, 17 Oct 2024 17:48:03 +0300 Subject: [PATCH 7/9] test canary push --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" } } From 2c3986d9c798c313931401452395a9064823bb73 Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Thu, 17 Oct 2024 17:50:30 +0300 Subject: [PATCH 8/9] manual --- .github/workflows/publish_canary.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish_canary.yaml b/.github/workflows/publish_canary.yaml index ed530b5..00c39b2 100644 --- a/.github/workflows/publish_canary.yaml +++ b/.github/workflows/publish_canary.yaml @@ -1,9 +1,7 @@ name: publish_canary on: - pull_request: - branches: - - "**" + workflow_dispatch: jobs: lint_test: From b6e61435b4a8f64de2bd9a83dc1a92bb532d6825 Mon Sep 17 00:00:00 2001 From: Filippos Malandrakis Date: Mon, 21 Oct 2024 09:50:57 +0300 Subject: [PATCH 9/9] release --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yaml | 2 +- .github/workflows/publish_canary.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f507a4c..43c167f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,6 @@ on: jobs: lint_test: - uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push + 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 index 52ad6d4..93e6fff 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -5,7 +5,7 @@ on: jobs: lint_test: - uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push + uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@v0.9.0 secrets: inherit with: run-build: true diff --git a/.github/workflows/publish_canary.yaml b/.github/workflows/publish_canary.yaml index 00c39b2..e53c8fd 100644 --- a/.github/workflows/publish_canary.yaml +++ b/.github/workflows/publish_canary.yaml @@ -5,7 +5,7 @@ on: jobs: lint_test: - uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@push + uses: babylonlabs-io/.github/.github/workflows/reusable_node_lint_test.yml@v0.9.0 secrets: inherit with: run-build: true