From f762f48502cbcb1c048a04998bde97067c52264d Mon Sep 17 00:00:00 2001 From: William Armiros Date: Thu, 9 Sep 2021 18:54:09 -0700 Subject: [PATCH 1/8] chore: initial config changes for release please --- .github/workflows/release-please.yml | 15 ++++++++++ .gitignore | 3 ++ .release-please-manifest.json | 42 ++++++++++++++++++++++++++++ lerna.json | 2 +- package.json | 5 ++-- 5 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000000..0c83ae7eaf --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,15 @@ +on: + push: + branches: + - main + +name: Run Release Please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + with: + command: manifest + token: ${{secrets.RELEASE_PR_TOKEN}} + default-branch: main diff --git a/.gitignore b/.gitignore index 8738ce6646..4398092d2b 100644 --- a/.gitignore +++ b/.gitignore @@ -81,3 +81,6 @@ package.json.lerna_backup *.iml .idea + +# version.ts file is automatically generated at compile time +version.ts diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000000..217c834f9d --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,42 @@ +{ + "detectors/node/opentelemetry-resource-detector-alibaba-cloud": "0.24.0", + "detectors/node/opentelemetry-resource-detector-aws": "0.24.0", + "detectors/node/opentelemetry-resource-detector-gcp": "0.24.0", + "detectors/node/opentelemetry-resource-detector-github": "0.24.0", + "metapackages/auto-instrumentations-node": "0.24.0", + "metapackages/auto-instrumentations-web": "0.24.0", + "packages/opentelemetry-browser-extension-autoinjection": "0.24.0", + "packages/opentelemetry-host-metrics": "0.24.0", + "packages/opentelemetry-id-generator-aws-xray": "0.24.0", + "packages/opentelemetry-test-utils": "0.24.0", + "plugins/node/opentelemetry-instrumentation-aws-lambda": "0.24.0", + "plugins/node/opentelemetry-instrumentation-bunyan": "0.24.0", + "plugins/node/opentelemetry-instrumentation-cassandra": "0.24.0", + "plugins/node/opentelemetry-instrumentation-connect": "0.24.0", + "plugins/node/opentelemetry-instrumentation-dns": "0.24.0", + "plugins/node/opentelemetry-instrumentation-express": "0.24.0", + "plugins/node/opentelemetry-instrumentation-generic-pool": "0.24.0", + "plugins/node/opentelemetry-instrumentation-graphql": "0.24.0", + "plugins/node/opentelemetry-instrumentation-hapi": "0.24.0", + "plugins/node/opentelemetry-instrumentation-ioredis": "0.24.0", + "plugins/node/opentelemetry-instrumentation-knex": "0.24.0", + "plugins/node/opentelemetry-instrumentation-koa": "0.24.0", + "plugins/node/opentelemetry-instrumentation-memcached": "0.24.0", + "plugins/node/opentelemetry-instrumentation-mongodb": "0.24.0", + "plugins/node/opentelemetry-instrumentation-mysql": "0.24.0", + "plugins/node/opentelemetry-instrumentation-mysql2": "0.24.0", + "plugins/node/opentelemetry-instrumentation-nestjs-core": "0.24.0", + "plugins/node/opentelemetry-instrumentation-net": "0.24.0", + "plugins/node/opentelemetry-instrumentation-pg": "0.24.0", + "plugins/node/opentelemetry-instrumentation-pino": "0.24.0", + "plugins/node/opentelemetry-instrumentation-redis": "0.24.0", + "plugins/node/opentelemetry-instrumentation-restify": "0.24.0", + "plugins/node/opentelemetry-instrumentation-router": "0.24.0", + "plugins/node/opentelemetry-instrumentation-winston": "0.24.0", + "plugins/web/opentelemetry-instrumentation-document-load": "0.24.0", + "plugins/web/opentelemetry-instrumentation-user-interaction": "0.24.0", + "plugins/web/opentelemetry-plugin-react-load": "0.24.0", + "propagators/opentelemetry-propagator-aws-xray": "0.24.0", + "propagators/opentelemetry-propagator-grpc-census-binary": "0.24.0", + "propagators/opentelemetry-propagator-ot-trace": "0.24.0" +} diff --git a/lerna.json b/lerna.json index 24e068aab6..42fce93efe 100644 --- a/lerna.json +++ b/lerna.json @@ -9,7 +9,7 @@ "propagators/*", "detectors/node/*" ], - "version": "0.24.0", + "version": "independent", "changelog": { "repo": "open-telemetry/opentelemetry-js-contrib", "labels": { diff --git a/package.json b/package.json index 635e7006c7..4289452218 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opentelemetry-contrib", - "version": "0.24.0", + "version": "0.1.0", "description": "This is a repository for OpenTelemetry JavaScript contributions.", "repository": { "type": "git", @@ -14,9 +14,10 @@ "scripts": { "clean": "lerna run clean", "postinstall": "npm run bootstrap", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version", "version:update": "lerna run version:update", "compile": "lerna run compile", + "prewatch": "npm run precompile", "test": "lerna run test", "test:ci:changed": "lerna run test --since origin/main", "test:browser": "lerna run test:browser", From 54a3869cbaa8015f00c710c78d615b17c5fdcca9 Mon Sep 17 00:00:00 2001 From: William Armiros Date: Thu, 9 Sep 2021 19:06:39 -0700 Subject: [PATCH 2/8] chore: add release-please-config --- release-please-config.json | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 release-please-config.json diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000000..904e6da98c --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,47 @@ +{ + "bootstrap-sha": "753e989de7b7663a389379fd1dfdaaba3d920c2e", + "plugins": ["node-workspace"], + "bump-minor-pre-major": true, + "packages": { + "detectors/node/opentelemetry-resource-detector-alibaba-cloud": {}, + "detectors/node/opentelemetry-resource-detector-aws": {}, + "detectors/node/opentelemetry-resource-detector-gcp": {}, + "detectors/node/opentelemetry-resource-detector-github": {}, + "metapackages/auto-instrumentations-node": {}, + "metapackages/auto-instrumentations-web": {}, + "packages/opentelemetry-browser-extension-autoinjection": {}, + "packages/opentelemetry-host-metrics": {}, + "packages/opentelemetry-id-generator-aws-xray": {}, + "packages/opentelemetry-test-utils": {}, + "plugins/node/opentelemetry-instrumentation-aws-lambda": {}, + "plugins/node/opentelemetry-instrumentation-bunyan": {}, + "plugins/node/opentelemetry-instrumentation-cassandra": {}, + "plugins/node/opentelemetry-instrumentation-connect": {}, + "plugins/node/opentelemetry-instrumentation-dns": {}, + "plugins/node/opentelemetry-instrumentation-express": {}, + "plugins/node/opentelemetry-instrumentation-generic-pool": {}, + "plugins/node/opentelemetry-instrumentation-graphql": {}, + "plugins/node/opentelemetry-instrumentation-hapi": {}, + "plugins/node/opentelemetry-instrumentation-ioredis": {}, + "plugins/node/opentelemetry-instrumentation-knex": {}, + "plugins/node/opentelemetry-instrumentation-koa": {}, + "plugins/node/opentelemetry-instrumentation-memcached": {}, + "plugins/node/opentelemetry-instrumentation-mongodb": {}, + "plugins/node/opentelemetry-instrumentation-mysql": {}, + "plugins/node/opentelemetry-instrumentation-mysql2": {}, + "plugins/node/opentelemetry-instrumentation-nestjs-core": {}, + "plugins/node/opentelemetry-instrumentation-net": {}, + "plugins/node/opentelemetry-instrumentation-pg": {}, + "plugins/node/opentelemetry-instrumentation-pino": {}, + "plugins/node/opentelemetry-instrumentation-redis": {}, + "plugins/node/opentelemetry-instrumentation-restify": {}, + "plugins/node/opentelemetry-instrumentation-router": {}, + "plugins/node/opentelemetry-instrumentation-winston": {}, + "plugins/web/opentelemetry-instrumentation-document-load": {}, + "plugins/web/opentelemetry-instrumentation-user-interaction": {}, + "plugins/web/opentelemetry-plugin-react-load": {}, + "propagators/opentelemetry-propagator-aws-xray": {}, + "propagators/opentelemetry-propagator-grpc-census-binary": {}, + "propagators/opentelemetry-propagator-ot-trace": {} + } +} \ No newline at end of file From e6a6bbf82cd3b9f740597811a6520e378dd83543 Mon Sep 17 00:00:00 2001 From: William Armiros Date: Thu, 9 Sep 2021 19:28:07 -0700 Subject: [PATCH 3/8] chore: deleted all version.ts --- .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../auto-instrumentations-web/src/version.ts | 18 ------------------ .../opentelemetry-host-metrics/src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ .../src/version.ts | 18 ------------------ release-please-config.json | 2 +- 38 files changed, 1 insertion(+), 667 deletions(-) delete mode 100644 detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts delete mode 100644 detectors/node/opentelemetry-resource-detector-aws/src/version.ts delete mode 100644 detectors/node/opentelemetry-resource-detector-gcp/src/version.ts delete mode 100644 detectors/node/opentelemetry-resource-detector-github/src/version.ts delete mode 100644 metapackages/auto-instrumentations-web/src/version.ts delete mode 100644 packages/opentelemetry-host-metrics/src/version.ts delete mode 100644 packages/opentelemetry-id-generator-aws-xray/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-aws-lambda/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-bunyan/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-cassandra/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-connect/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-dns/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-express/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-generic-pool/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-graphql/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-hapi/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-ioredis/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-knex/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-koa/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-memcached/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-mongodb/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-mysql/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-mysql2/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-nestjs-core/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-net/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-pg/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-pino/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-redis/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-restify/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-router/src/version.ts delete mode 100644 plugins/node/opentelemetry-instrumentation-winston/src/version.ts delete mode 100644 plugins/web/opentelemetry-instrumentation-document-load/src/version.ts delete mode 100644 plugins/web/opentelemetry-instrumentation-user-interaction/src/version.ts delete mode 100644 plugins/web/opentelemetry-plugin-react-load/src/version.ts delete mode 100644 propagators/opentelemetry-propagator-aws-xray/src/version.ts delete mode 100644 propagators/opentelemetry-propagator-grpc-census-binary/src/version.ts delete mode 100644 propagators/opentelemetry-propagator-ot-trace/src/version.ts diff --git a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts b/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/detectors/node/opentelemetry-resource-detector-aws/src/version.ts b/detectors/node/opentelemetry-resource-detector-aws/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/detectors/node/opentelemetry-resource-detector-aws/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/detectors/node/opentelemetry-resource-detector-gcp/src/version.ts b/detectors/node/opentelemetry-resource-detector-gcp/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/detectors/node/opentelemetry-resource-detector-gcp/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/detectors/node/opentelemetry-resource-detector-github/src/version.ts b/detectors/node/opentelemetry-resource-detector-github/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/detectors/node/opentelemetry-resource-detector-github/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/metapackages/auto-instrumentations-web/src/version.ts b/metapackages/auto-instrumentations-web/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/metapackages/auto-instrumentations-web/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/packages/opentelemetry-host-metrics/src/version.ts b/packages/opentelemetry-host-metrics/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/packages/opentelemetry-host-metrics/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/packages/opentelemetry-id-generator-aws-xray/src/version.ts b/packages/opentelemetry-id-generator-aws-xray/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/packages/opentelemetry-id-generator-aws-xray/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-aws-lambda/src/version.ts b/plugins/node/opentelemetry-instrumentation-aws-lambda/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-aws-lambda/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-bunyan/src/version.ts b/plugins/node/opentelemetry-instrumentation-bunyan/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-bunyan/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-cassandra/src/version.ts b/plugins/node/opentelemetry-instrumentation-cassandra/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-cassandra/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-connect/src/version.ts b/plugins/node/opentelemetry-instrumentation-connect/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-connect/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-dns/src/version.ts b/plugins/node/opentelemetry-instrumentation-dns/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-dns/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-express/src/version.ts b/plugins/node/opentelemetry-instrumentation-express/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-express/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-generic-pool/src/version.ts b/plugins/node/opentelemetry-instrumentation-generic-pool/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-generic-pool/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-graphql/src/version.ts b/plugins/node/opentelemetry-instrumentation-graphql/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-graphql/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-hapi/src/version.ts b/plugins/node/opentelemetry-instrumentation-hapi/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-hapi/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-ioredis/src/version.ts b/plugins/node/opentelemetry-instrumentation-ioredis/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-ioredis/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-knex/src/version.ts b/plugins/node/opentelemetry-instrumentation-knex/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-knex/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-koa/src/version.ts b/plugins/node/opentelemetry-instrumentation-koa/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-koa/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-memcached/src/version.ts b/plugins/node/opentelemetry-instrumentation-memcached/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-memcached/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-mongodb/src/version.ts b/plugins/node/opentelemetry-instrumentation-mongodb/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-mongodb/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-mysql/src/version.ts b/plugins/node/opentelemetry-instrumentation-mysql/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-mysql/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-mysql2/src/version.ts b/plugins/node/opentelemetry-instrumentation-mysql2/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-mysql2/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-nestjs-core/src/version.ts b/plugins/node/opentelemetry-instrumentation-nestjs-core/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-nestjs-core/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-net/src/version.ts b/plugins/node/opentelemetry-instrumentation-net/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-net/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-pg/src/version.ts b/plugins/node/opentelemetry-instrumentation-pg/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-pg/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-pino/src/version.ts b/plugins/node/opentelemetry-instrumentation-pino/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-pino/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-redis/src/version.ts b/plugins/node/opentelemetry-instrumentation-redis/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-redis/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-restify/src/version.ts b/plugins/node/opentelemetry-instrumentation-restify/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-restify/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-router/src/version.ts b/plugins/node/opentelemetry-instrumentation-router/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-router/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/node/opentelemetry-instrumentation-winston/src/version.ts b/plugins/node/opentelemetry-instrumentation-winston/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/node/opentelemetry-instrumentation-winston/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/web/opentelemetry-instrumentation-document-load/src/version.ts b/plugins/web/opentelemetry-instrumentation-document-load/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/web/opentelemetry-instrumentation-document-load/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/src/version.ts b/plugins/web/opentelemetry-instrumentation-user-interaction/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/plugins/web/opentelemetry-plugin-react-load/src/version.ts b/plugins/web/opentelemetry-plugin-react-load/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/plugins/web/opentelemetry-plugin-react-load/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/propagators/opentelemetry-propagator-aws-xray/src/version.ts b/propagators/opentelemetry-propagator-aws-xray/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/propagators/opentelemetry-propagator-aws-xray/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/propagators/opentelemetry-propagator-grpc-census-binary/src/version.ts b/propagators/opentelemetry-propagator-grpc-census-binary/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/propagators/opentelemetry-propagator-grpc-census-binary/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/propagators/opentelemetry-propagator-ot-trace/src/version.ts b/propagators/opentelemetry-propagator-ot-trace/src/version.ts deleted file mode 100644 index 2902e7d262..0000000000 --- a/propagators/opentelemetry-propagator-ot-trace/src/version.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright The OpenTelemetry Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// this is autogenerated file, see scripts/version-update.js -export const VERSION = '0.24.0'; diff --git a/release-please-config.json b/release-please-config.json index 904e6da98c..f1e0fde8b9 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -44,4 +44,4 @@ "propagators/opentelemetry-propagator-grpc-census-binary": {}, "propagators/opentelemetry-propagator-ot-trace": {} } -} \ No newline at end of file +} From 5887603138c90bbe898e3bed79e3977f176cc74a Mon Sep 17 00:00:00 2001 From: William Armiros Date: Thu, 9 Sep 2021 20:08:24 -0700 Subject: [PATCH 4/8] chore: added scripts to all packages --- .../opentelemetry-resource-detector-alibaba-cloud/package.json | 3 ++- .../node/opentelemetry-resource-detector-aws/package.json | 3 ++- .../node/opentelemetry-resource-detector-gcp/package.json | 3 ++- .../node/opentelemetry-resource-detector-github/package.json | 3 ++- metapackages/auto-instrumentations-node/package.json | 3 ++- metapackages/auto-instrumentations-web/package.json | 3 ++- .../opentelemetry-browser-extension-autoinjection/package.json | 3 ++- packages/opentelemetry-host-metrics/package.json | 3 ++- packages/opentelemetry-id-generator-aws-xray/package.json | 3 ++- packages/opentelemetry-test-utils/package.json | 3 ++- .../node/opentelemetry-instrumentation-aws-lambda/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-bunyan/package.json | 3 ++- .../node/opentelemetry-instrumentation-cassandra/package.json | 3 ++- .../node/opentelemetry-instrumentation-connect/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-dns/package.json | 3 ++- .../node/opentelemetry-instrumentation-express/package.json | 3 ++- .../opentelemetry-instrumentation-generic-pool/package.json | 3 ++- .../node/opentelemetry-instrumentation-graphql/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-hapi/package.json | 3 ++- .../node/opentelemetry-instrumentation-ioredis/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-knex/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-koa/package.json | 3 ++- .../node/opentelemetry-instrumentation-memcached/package.json | 3 ++- .../node/opentelemetry-instrumentation-mongodb/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-mysql/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-mysql2/package.json | 3 ++- .../opentelemetry-instrumentation-nestjs-core/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-net/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-pg/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-pino/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-redis/package.json | 3 ++- .../node/opentelemetry-instrumentation-restify/package.json | 3 ++- plugins/node/opentelemetry-instrumentation-router/package.json | 3 ++- .../node/opentelemetry-instrumentation-winston/package.json | 3 ++- .../opentelemetry-instrumentation-document-load/package.json | 3 ++- .../package.json | 3 ++- plugins/web/opentelemetry-plugin-react-load/package.json | 3 ++- propagators/opentelemetry-propagator-aws-xray/package.json | 3 ++- .../opentelemetry-propagator-grpc-census-binary/package.json | 3 ++- propagators/opentelemetry-propagator-ot-trace/package.json | 3 ++- 40 files changed, 80 insertions(+), 40 deletions(-) diff --git a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json b/detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json index c45516e080..a83c8dc5ac 100644 --- a/detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json +++ b/detectors/node/opentelemetry-resource-detector-alibaba-cloud/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/detectors/node/opentelemetry-resource-detector-aws/package.json b/detectors/node/opentelemetry-resource-detector-aws/package.json index 9c22c0a181..1a990539dc 100644 --- a/detectors/node/opentelemetry-resource-detector-aws/package.json +++ b/detectors/node/opentelemetry-resource-detector-aws/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/detectors/node/opentelemetry-resource-detector-gcp/package.json b/detectors/node/opentelemetry-resource-detector-gcp/package.json index eb462055d1..4c6d3d0ace 100644 --- a/detectors/node/opentelemetry-resource-detector-gcp/package.json +++ b/detectors/node/opentelemetry-resource-detector-gcp/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/detectors/node/opentelemetry-resource-detector-github/package.json b/detectors/node/opentelemetry-resource-detector-github/package.json index cc969caa13..febf6bb55f 100644 --- a/detectors/node/opentelemetry-resource-detector-github/package.json +++ b/detectors/node/opentelemetry-resource-detector-github/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/metapackages/auto-instrumentations-node/package.json b/metapackages/auto-instrumentations-node/package.json index 54b764402f..66a9ad81e1 100644 --- a/metapackages/auto-instrumentations-node/package.json +++ b/metapackages/auto-instrumentations-node/package.json @@ -17,7 +17,8 @@ "compile": "tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "yarn test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.ts'", diff --git a/metapackages/auto-instrumentations-web/package.json b/metapackages/auto-instrumentations-web/package.json index 9ab613bb79..ba92c073eb 100644 --- a/metapackages/auto-instrumentations-web/package.json +++ b/metapackages/auto-instrumentations-web/package.json @@ -18,7 +18,8 @@ "compile": "tsc --build tsconfig.json tsconfig.esm.json", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test:browser": "nyc karma start --single-run", "version": "node ../../scripts/version-update.js", diff --git a/packages/opentelemetry-browser-extension-autoinjection/package.json b/packages/opentelemetry-browser-extension-autoinjection/package.json index cdcaf0b442..a28ccace1a 100644 --- a/packages/opentelemetry-browser-extension-autoinjection/package.json +++ b/packages/opentelemetry-browser-extension-autoinjection/package.json @@ -11,7 +11,8 @@ "build:mv3": "npx webpack --mode=production --env MV=3", "lint": "eslint .", "lint:fix": "eslint . --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", "watch": "npx webpack --mode=development --watch", diff --git a/packages/opentelemetry-host-metrics/package.json b/packages/opentelemetry-host-metrics/package.json index 37ddd9399e..c49cf49bf6 100644 --- a/packages/opentelemetry-host-metrics/package.json +++ b/packages/opentelemetry-host-metrics/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", diff --git a/packages/opentelemetry-id-generator-aws-xray/package.json b/packages/opentelemetry-id-generator-aws-xray/package.json index 1c4c96cba0..43593754db 100644 --- a/packages/opentelemetry-id-generator-aws-xray/package.json +++ b/packages/opentelemetry-id-generator-aws-xray/package.json @@ -15,7 +15,8 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js-contrib", "scripts": { - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "compile": "tsc --build tsconfig.json tsconfig.esm.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", diff --git a/packages/opentelemetry-test-utils/package.json b/packages/opentelemetry-test-utils/package.json index 959cebdef6..629ea2f9b2 100644 --- a/packages/opentelemetry-test-utils/package.json +++ b/packages/opentelemetry-test-utils/package.json @@ -7,7 +7,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "compile": "tsc -p .", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "watch": "tsc -w" }, diff --git a/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json b/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json index 6c8447b0db..fa1a7e502f 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json +++ b/plugins/node/opentelemetry-instrumentation-aws-lambda/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-bunyan/package.json b/plugins/node/opentelemetry-instrumentation-bunyan/package.json index 57cfffb1d3..7e861f33a8 100644 --- a/plugins/node/opentelemetry-instrumentation-bunyan/package.json +++ b/plugins/node/opentelemetry-instrumentation-bunyan/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-cassandra/package.json b/plugins/node/opentelemetry-instrumentation-cassandra/package.json index d75baedc38..61c090a1b6 100644 --- a/plugins/node/opentelemetry-instrumentation-cassandra/package.json +++ b/plugins/node/opentelemetry-instrumentation-cassandra/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-connect/package.json b/plugins/node/opentelemetry-instrumentation-connect/package.json index 1fa8456912..0ae756aa45 100644 --- a/plugins/node/opentelemetry-instrumentation-connect/package.json +++ b/plugins/node/opentelemetry-instrumentation-connect/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "version:update": "node ../../../scripts/version-update.js", diff --git a/plugins/node/opentelemetry-instrumentation-dns/package.json b/plugins/node/opentelemetry-instrumentation-dns/package.json index 050780212b..65320df0f4 100644 --- a/plugins/node/opentelemetry-instrumentation-dns/package.json +++ b/plugins/node/opentelemetry-instrumentation-dns/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-express/package.json b/plugins/node/opentelemetry-instrumentation-express/package.json index 892e34138f..feb40161ad 100644 --- a/plugins/node/opentelemetry-instrumentation-express/package.json +++ b/plugins/node/opentelemetry-instrumentation-express/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-generic-pool/package.json b/plugins/node/opentelemetry-instrumentation-generic-pool/package.json index 4b44efe083..edb7f8a74a 100644 --- a/plugins/node/opentelemetry-instrumentation-generic-pool/package.json +++ b/plugins/node/opentelemetry-instrumentation-generic-pool/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-graphql/package.json b/plugins/node/opentelemetry-instrumentation-graphql/package.json index 13b9bc16df..2b21f26a92 100644 --- a/plugins/node/opentelemetry-instrumentation-graphql/package.json +++ b/plugins/node/opentelemetry-instrumentation-graphql/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", "tdd": "npm run test -- --watch-extensions ts --watch", diff --git a/plugins/node/opentelemetry-instrumentation-hapi/package.json b/plugins/node/opentelemetry-instrumentation-hapi/package.json index a6b9da22ff..eeb4b89119 100644 --- a/plugins/node/opentelemetry-instrumentation-hapi/package.json +++ b/plugins/node/opentelemetry-instrumentation-hapi/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile" diff --git a/plugins/node/opentelemetry-instrumentation-ioredis/package.json b/plugins/node/opentelemetry-instrumentation-ioredis/package.json index 9eef5b7b39..d17e072bd0 100644 --- a/plugins/node/opentelemetry-instrumentation-ioredis/package.json +++ b/plugins/node/opentelemetry-instrumentation-ioredis/package.json @@ -15,7 +15,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", diff --git a/plugins/node/opentelemetry-instrumentation-knex/package.json b/plugins/node/opentelemetry-instrumentation-knex/package.json index 32a420f2cd..4944bb77c5 100644 --- a/plugins/node/opentelemetry-instrumentation-knex/package.json +++ b/plugins/node/opentelemetry-instrumentation-knex/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-koa/package.json b/plugins/node/opentelemetry-instrumentation-koa/package.json index 4f523823b0..8078894ffd 100644 --- a/plugins/node/opentelemetry-instrumentation-koa/package.json +++ b/plugins/node/opentelemetry-instrumentation-koa/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-memcached/package.json b/plugins/node/opentelemetry-instrumentation-memcached/package.json index d48ce05d14..57d6254565 100644 --- a/plugins/node/opentelemetry-instrumentation-memcached/package.json +++ b/plugins/node/opentelemetry-instrumentation-memcached/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-mongodb/package.json b/plugins/node/opentelemetry-instrumentation-mongodb/package.json index 0b5531d39e..39b5c76f5a 100644 --- a/plugins/node/opentelemetry-instrumentation-mongodb/package.json +++ b/plugins/node/opentelemetry-instrumentation-mongodb/package.json @@ -14,7 +14,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-mysql/package.json b/plugins/node/opentelemetry-instrumentation-mysql/package.json index 5a2e0efb7a..1f121d8f88 100644 --- a/plugins/node/opentelemetry-instrumentation-mysql/package.json +++ b/plugins/node/opentelemetry-instrumentation-mysql/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint:fix": "eslint . --ext .ts --fix", "lint": "eslint . --ext .ts", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-mysql2/package.json b/plugins/node/opentelemetry-instrumentation-mysql2/package.json index aee2c3a562..717b3fd068 100644 --- a/plugins/node/opentelemetry-instrumentation-mysql2/package.json +++ b/plugins/node/opentelemetry-instrumentation-mysql2/package.json @@ -11,7 +11,8 @@ "compile": "npm run version:update && tsc -p .", "lint:fix": "eslint . --ext .ts --fix", "lint": "eslint . --ext .ts", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-nestjs-core/package.json b/plugins/node/opentelemetry-instrumentation-nestjs-core/package.json index 790f4a10d9..81a414957f 100644 --- a/plugins/node/opentelemetry-instrumentation-nestjs-core/package.json +++ b/plugins/node/opentelemetry-instrumentation-nestjs-core/package.json @@ -12,7 +12,8 @@ "compile:watch": "tsc -w", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-net/package.json b/plugins/node/opentelemetry-instrumentation-net/package.json index 66c59694c6..e086df34e6 100644 --- a/plugins/node/opentelemetry-instrumentation-net/package.json +++ b/plugins/node/opentelemetry-instrumentation-net/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-pg/package.json b/plugins/node/opentelemetry-instrumentation-pg/package.json index 3fd7d1054c..10f8fff53c 100644 --- a/plugins/node/opentelemetry-instrumentation-pg/package.json +++ b/plugins/node/opentelemetry-instrumentation-pg/package.json @@ -11,7 +11,8 @@ "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "tdd": "npm run test -- --watch-extensions ts --watch", "test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'", diff --git a/plugins/node/opentelemetry-instrumentation-pino/package.json b/plugins/node/opentelemetry-instrumentation-pino/package.json index 7f288951ee..21ab91b59b 100644 --- a/plugins/node/opentelemetry-instrumentation-pino/package.json +++ b/plugins/node/opentelemetry-instrumentation-pino/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/node/opentelemetry-instrumentation-redis/package.json b/plugins/node/opentelemetry-instrumentation-redis/package.json index b322e1ce6d..72051ad241 100644 --- a/plugins/node/opentelemetry-instrumentation-redis/package.json +++ b/plugins/node/opentelemetry-instrumentation-redis/package.json @@ -15,7 +15,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", diff --git a/plugins/node/opentelemetry-instrumentation-restify/package.json b/plugins/node/opentelemetry-instrumentation-restify/package.json index f9d2163008..8f91678b90 100644 --- a/plugins/node/opentelemetry-instrumentation-restify/package.json +++ b/plugins/node/opentelemetry-instrumentation-restify/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-router/package.json b/plugins/node/opentelemetry-instrumentation-router/package.json index dd228a8a59..dbb143bc36 100644 --- a/plugins/node/opentelemetry-instrumentation-router/package.json +++ b/plugins/node/opentelemetry-instrumentation-router/package.json @@ -12,7 +12,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", diff --git a/plugins/node/opentelemetry-instrumentation-winston/package.json b/plugins/node/opentelemetry-instrumentation-winston/package.json index 251786b1e9..db46ee9abf 100644 --- a/plugins/node/opentelemetry-instrumentation-winston/package.json +++ b/plugins/node/opentelemetry-instrumentation-winston/package.json @@ -12,7 +12,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "prepare": "npm run compile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc -p ." diff --git a/plugins/web/opentelemetry-instrumentation-document-load/package.json b/plugins/web/opentelemetry-instrumentation-document-load/package.json index 05cd89a9ef..cf5bd6900c 100644 --- a/plugins/web/opentelemetry-instrumentation-document-load/package.json +++ b/plugins/web/opentelemetry-instrumentation-document-load/package.json @@ -11,7 +11,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc --build tsconfig.json tsconfig.esm.json", "prepare": "npm run compile", diff --git a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json index 9030de1677..25055d62f7 100644 --- a/plugins/web/opentelemetry-instrumentation-user-interaction/package.json +++ b/plugins/web/opentelemetry-instrumentation-user-interaction/package.json @@ -11,7 +11,8 @@ "lint:fix": "eslint . --ext .ts --fix", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc --build tsconfig.json tsconfig.esm.json", "prepare": "npm run compile", diff --git a/plugins/web/opentelemetry-plugin-react-load/package.json b/plugins/web/opentelemetry-plugin-react-load/package.json index 945f3329a3..0529321ad1 100644 --- a/plugins/web/opentelemetry-plugin-react-load/package.json +++ b/plugins/web/opentelemetry-plugin-react-load/package.json @@ -11,7 +11,8 @@ "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "version:update": "node ../../../scripts/version-update.js", "compile": "npm run version:update && tsc --build tsconfig.json tsconfig.esm.json", "prepare": "npm run compile", diff --git a/propagators/opentelemetry-propagator-aws-xray/package.json b/propagators/opentelemetry-propagator-aws-xray/package.json index 1cbe0a690d..03e241a360 100644 --- a/propagators/opentelemetry-propagator-aws-xray/package.json +++ b/propagators/opentelemetry-propagator-aws-xray/package.json @@ -7,7 +7,8 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js-contrib", "scripts": { - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "compile": "tsc --build tsconfig.json tsconfig.esm.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", diff --git a/propagators/opentelemetry-propagator-grpc-census-binary/package.json b/propagators/opentelemetry-propagator-grpc-census-binary/package.json index ff32445016..c51c3a8796 100644 --- a/propagators/opentelemetry-propagator-grpc-census-binary/package.json +++ b/propagators/opentelemetry-propagator-grpc-census-binary/package.json @@ -13,7 +13,8 @@ "clean": "rimraf build/*", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "compile": "npm run version:update && tsc -p .", "prepare": "npm run compile", "version:update": "node ../../scripts/version-update.js", diff --git a/propagators/opentelemetry-propagator-ot-trace/package.json b/propagators/opentelemetry-propagator-ot-trace/package.json index 333e299108..2b866d1cee 100644 --- a/propagators/opentelemetry-propagator-ot-trace/package.json +++ b/propagators/opentelemetry-propagator-ot-trace/package.json @@ -7,7 +7,8 @@ "types": "build/src/index.d.ts", "repository": "open-telemetry/opentelemetry-js-contrib", "scripts": { - "precompile": "tsc --version", + "precompile": "tsc --version && lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", + "prewatch": "npm run precompile", "compile": "tsc --build tsconfig.json tsconfig.esm.json", "clean": "tsc --build --clean tsconfig.json tsconfig.esm.json", "test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", From 14324ef92bec7eae8c0d19928ef1bbf2c2bf1915 Mon Sep 17 00:00:00 2001 From: William Armiros Date: Thu, 9 Sep 2021 20:27:42 -0700 Subject: [PATCH 5/8] chore: updated version to 0.25.0 --- .release-please-manifest.json | 80 +++++++++++++++++------------------ 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 217c834f9d..6b66f6e546 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,42 +1,42 @@ { - "detectors/node/opentelemetry-resource-detector-alibaba-cloud": "0.24.0", - "detectors/node/opentelemetry-resource-detector-aws": "0.24.0", - "detectors/node/opentelemetry-resource-detector-gcp": "0.24.0", - "detectors/node/opentelemetry-resource-detector-github": "0.24.0", - "metapackages/auto-instrumentations-node": "0.24.0", - "metapackages/auto-instrumentations-web": "0.24.0", - "packages/opentelemetry-browser-extension-autoinjection": "0.24.0", - "packages/opentelemetry-host-metrics": "0.24.0", - "packages/opentelemetry-id-generator-aws-xray": "0.24.0", - "packages/opentelemetry-test-utils": "0.24.0", - "plugins/node/opentelemetry-instrumentation-aws-lambda": "0.24.0", - "plugins/node/opentelemetry-instrumentation-bunyan": "0.24.0", - "plugins/node/opentelemetry-instrumentation-cassandra": "0.24.0", - "plugins/node/opentelemetry-instrumentation-connect": "0.24.0", - "plugins/node/opentelemetry-instrumentation-dns": "0.24.0", - "plugins/node/opentelemetry-instrumentation-express": "0.24.0", - "plugins/node/opentelemetry-instrumentation-generic-pool": "0.24.0", - "plugins/node/opentelemetry-instrumentation-graphql": "0.24.0", - "plugins/node/opentelemetry-instrumentation-hapi": "0.24.0", - "plugins/node/opentelemetry-instrumentation-ioredis": "0.24.0", - "plugins/node/opentelemetry-instrumentation-knex": "0.24.0", - "plugins/node/opentelemetry-instrumentation-koa": "0.24.0", - "plugins/node/opentelemetry-instrumentation-memcached": "0.24.0", - "plugins/node/opentelemetry-instrumentation-mongodb": "0.24.0", - "plugins/node/opentelemetry-instrumentation-mysql": "0.24.0", - "plugins/node/opentelemetry-instrumentation-mysql2": "0.24.0", - "plugins/node/opentelemetry-instrumentation-nestjs-core": "0.24.0", - "plugins/node/opentelemetry-instrumentation-net": "0.24.0", - "plugins/node/opentelemetry-instrumentation-pg": "0.24.0", - "plugins/node/opentelemetry-instrumentation-pino": "0.24.0", - "plugins/node/opentelemetry-instrumentation-redis": "0.24.0", - "plugins/node/opentelemetry-instrumentation-restify": "0.24.0", - "plugins/node/opentelemetry-instrumentation-router": "0.24.0", - "plugins/node/opentelemetry-instrumentation-winston": "0.24.0", - "plugins/web/opentelemetry-instrumentation-document-load": "0.24.0", - "plugins/web/opentelemetry-instrumentation-user-interaction": "0.24.0", - "plugins/web/opentelemetry-plugin-react-load": "0.24.0", - "propagators/opentelemetry-propagator-aws-xray": "0.24.0", - "propagators/opentelemetry-propagator-grpc-census-binary": "0.24.0", - "propagators/opentelemetry-propagator-ot-trace": "0.24.0" + "detectors/node/opentelemetry-resource-detector-alibaba-cloud": "0.25.0", + "detectors/node/opentelemetry-resource-detector-aws": "0.25.0", + "detectors/node/opentelemetry-resource-detector-gcp": "0.25.0", + "detectors/node/opentelemetry-resource-detector-github": "0.25.0", + "metapackages/auto-instrumentations-node": "0.25.0", + "metapackages/auto-instrumentations-web": "0.25.0", + "packages/opentelemetry-browser-extension-autoinjection": "0.25.0", + "packages/opentelemetry-host-metrics": "0.25.0", + "packages/opentelemetry-id-generator-aws-xray": "0.25.0", + "packages/opentelemetry-test-utils": "0.25.0", + "plugins/node/opentelemetry-instrumentation-aws-lambda": "0.25.0", + "plugins/node/opentelemetry-instrumentation-bunyan": "0.25.0", + "plugins/node/opentelemetry-instrumentation-cassandra": "0.25.0", + "plugins/node/opentelemetry-instrumentation-connect": "0.25.0", + "plugins/node/opentelemetry-instrumentation-dns": "0.25.0", + "plugins/node/opentelemetry-instrumentation-express": "0.25.0", + "plugins/node/opentelemetry-instrumentation-generic-pool": "0.25.0", + "plugins/node/opentelemetry-instrumentation-graphql": "0.25.0", + "plugins/node/opentelemetry-instrumentation-hapi": "0.25.0", + "plugins/node/opentelemetry-instrumentation-ioredis": "0.25.0", + "plugins/node/opentelemetry-instrumentation-knex": "0.25.0", + "plugins/node/opentelemetry-instrumentation-koa": "0.25.0", + "plugins/node/opentelemetry-instrumentation-memcached": "0.25.0", + "plugins/node/opentelemetry-instrumentation-mongodb": "0.25.0", + "plugins/node/opentelemetry-instrumentation-mysql": "0.25.0", + "plugins/node/opentelemetry-instrumentation-mysql2": "0.25.0", + "plugins/node/opentelemetry-instrumentation-nestjs-core": "0.25.0", + "plugins/node/opentelemetry-instrumentation-net": "0.25.0", + "plugins/node/opentelemetry-instrumentation-pg": "0.25.0", + "plugins/node/opentelemetry-instrumentation-pino": "0.25.0", + "plugins/node/opentelemetry-instrumentation-redis": "0.25.0", + "plugins/node/opentelemetry-instrumentation-restify": "0.25.0", + "plugins/node/opentelemetry-instrumentation-router": "0.25.0", + "plugins/node/opentelemetry-instrumentation-winston": "0.25.0", + "plugins/web/opentelemetry-instrumentation-document-load": "0.25.0", + "plugins/web/opentelemetry-instrumentation-user-interaction": "0.25.0", + "plugins/web/opentelemetry-plugin-react-load": "0.25.0", + "propagators/opentelemetry-propagator-aws-xray": "0.25.0", + "propagators/opentelemetry-propagator-grpc-census-binary": "0.25.0", + "propagators/opentelemetry-propagator-ot-trace": "0.25.0" } From 0f8ce9f02d08ae250f087e5790264e65f5373926 Mon Sep 17 00:00:00 2001 From: William Armiros Date: Mon, 13 Sep 2021 09:49:12 -0700 Subject: [PATCH 6/8] chore: updated sha to be for 0.25.0 release --- release-please-config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-please-config.json b/release-please-config.json index f1e0fde8b9..edf8116fe1 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,5 +1,5 @@ { - "bootstrap-sha": "753e989de7b7663a389379fd1dfdaaba3d920c2e", + "bootstrap-sha": "798fb2d5c585f6fdee10146bfe15e03409bdddfe", "plugins": ["node-workspace"], "bump-minor-pre-major": true, "packages": { From 5593eb4d384164680e233c463dff7c52bc1e2e4f Mon Sep 17 00:00:00 2001 From: William Armiros Date: Wed, 15 Sep 2021 23:14:56 -0700 Subject: [PATCH 7/8] added steps for publishing to NPM and docs --- .github/workflows/publish.yml | 106 --------------------------- .github/workflows/release-please.yml | 45 ++++++++++++ .github/workflows/release-pr.yml | 63 ---------------- RELEASING.md | 25 +------ 4 files changed, 48 insertions(+), 191 deletions(-) delete mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/release-pr.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 68a4a776d9..0000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,106 +0,0 @@ -name: Publish a New Release -on: - pull_request: - branches: [main] - types: [closed] - -jobs: - publish_to_npm: - name: Publish to NPM and GitHub - runs-on: ubuntu-latest - steps: - - # Determine if PR was a valid merged release PR. If so, publish the new release. Otherwise, do nothing. - # This is a valid release PR if the following 3 things are true: - # 1. The head (source) branch of the PR matches the expected "release/x.y.z" pattern - # 2. The PR has been merged, rather than closed - # 3. The head (source) repo of the PR is not a fork, or in other words the PR is made from a branch within the main repo - - name: Validate Release PR - id: validate_pr - run: | - merged=${{ github.event.pull_request.merged }} - forked=${{ github.event.pull_request.head.repo.fork }} - echo "Source branch is ${{ github.head_ref }}; merged = $merged; from a fork = $forked" - if [ $(grep -E '^release/[0-9]+\.[0-9]+\..+$' <<< '${{ github.head_ref }}') ] && [ $merged = true ] && [ $forked = false ] - then - echo "::set-output name=is_release::true" - fi - - # Get release version and draft release tag from PR metadata - - name: Get Release Metadata - if: steps.validate_pr.outputs.is_release - id: metadata - run: | - version=$(cut -d'/' -f2 <<< '${{ github.head_ref }}') - echo "::set-output name=version::$version" - - - name: Checkout Repository - if: steps.validate_pr.outputs.is_release - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup Node - if: steps.validate_pr.outputs.is_release - uses: actions/setup-node@v2 - with: - node-version: '14.x' - registry-url: 'https://registry.npmjs.org' - - - name: Cache Dependencies - if: steps.validate_pr.outputs.is_release - uses: actions/cache@v2 - with: - path: | - node_modules - package-lock.json - detectors/node/*/node_modules - metapackages/*/node_modules - packages/*/node_modules - plugins/node/*/node_modules - plugins/web/*/node_modules - propagators/*/node_modules - key: ${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} - - - name: Build Packages - if: steps.validate_pr.outputs.is_release - run: | - npm install - npx lerna bootstrap --no-ci - - - name: Publish to NPM - if: steps.validate_pr.outputs.is_release - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx lerna publish ${{ steps.metadata.outputs.version }} --no-push --no-git-tag-version --no-verify-access --yes - - # Parses the CHANGELOG.md file for the latest version's entry, to be used in GitHub release body - # Assumes the CHANGELOG's first H2 entry is "Unreleased", followed by version entries - - name: Get Release Body - if: steps.validate_pr.outputs.is_release - id: get-changelog - run: | - echo "Getting changelog entry for version ${{ steps.metadata.outputs.version }}" - startline=$(sed -n "/## ${{ steps.metadata.outputs.version }}/=" CHANGELOG.md) - startline=$((startline+2)) - endline=$(sed -n '/^## /=' CHANGELOG.md | head -n 3 | tail -n 1) - endline=$((endline-2)) - description=$(sed -n "$startline,$endline p" CHANGELOG.md) - description="${description//'%'/'%25'}" - description="${description//$'\n'/'%0A'}" - description="${description//$'\r'/'%0D'}" - echo "::set-output name=CHANGELOG::$description" - - - name: Create GitHub Release - if: steps.validate_pr.outputs.is_release - id: make-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: 'v${{ steps.metadata.outputs.version }}' - commitish: main - release_name: 'v${{ steps.metadata.outputs.version }} Release' - body: "${{ steps.get-changelog.outputs.CHANGELOG }}" - draft: false - prerelease: false diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 0c83ae7eaf..07982e7a28 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -9,7 +9,52 @@ jobs: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v2 + id: release with: command: manifest token: ${{secrets.RELEASE_PR_TOKEN}} default-branch: main + + # The logic below handles the npm publication: + - name: Checkout Repository + if: ${{ steps.release.outputs.releases_created }} + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup Node + uses: actions/setup-node@v1 + if: ${{ steps.release.outputs.releases_created }} + with: + node-version: 14 + registry-url: 'https://registry.npmjs.org' + + - name: Cache Dependencies + if: ${{ steps.release.outputs.releases_created }} + uses: actions/cache@v2 + with: + path: | + node_modules + package-lock.json + detectors/node/*/node_modules + metapackages/*/node_modules + packages/*/node_modules + plugins/node/*/node_modules + plugins/web/*/node_modules + propagators/*/node_modules + key: ${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} + + - name: Build Packages + if: ${{ steps.release.outputs.releases_created }} + run: | + npm install + npx lerna bootstrap --no-ci + + # Release Please has already incremented versions and published tags, so we just + # need to publish all unpublished versions to NPM here + # See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package + - name: Publish to NPM + if: ${{ steps.release.outputs.releases_created }} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: npx lerna publish from-package --no-push --no-git-tag-version --no-verify-access --yes diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml deleted file mode 100644 index 6bb8a18a33..0000000000 --- a/.github/workflows/release-pr.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Create New Release PR -on: - workflow_dispatch: - inputs: - version: - description: The semver-compliant version to tag the release with, e.g. 1.2.3, 1.0.0-rc.1 - required: true - -jobs: - create_release_pr: - name: Create Release PR and Draft Release - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '14.x' - - - name: Cache Dependencies - uses: actions/cache@v2 - with: - path: | - node_modules - package-lock.json - detectors/node/*/node_modules - metapackages/*/node_modules - packages/*/node_modules - plugins/node/*/node_modules - plugins/web/*/node_modules - propagators/*/node_modules - key: ${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} - - # Bump versions in all package.json and version.ts files - - name: Prepare Release - run: | - npm install - npm --no-git-tag-version version ${{ github.event.inputs.version }} - npx lerna publish ${{ github.event.inputs.version }} --skip-npm --no-git-tag-version --no-push --yes - npx lerna bootstrap --no-ci - - - name: Update Changelog - env: - GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} - run: ./scripts/changelog-update.sh ${{ github.event.inputs.version }} - - # Make PR with version bumps and changelog update. Merging this PR triggers publish workflow. - # See: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/.github/workflows/publish.yml - - name: Create Release PR - uses: peter-evans/create-pull-request@v3 - with: - branch: release/${{ github.event.inputs.version }} - commit-message: 'chore: ${{ github.event.inputs.version }} release proposal' - title: 'chore: ${{ github.event.inputs.version }} release proposal' - body: | - This is an auto-generated release PR. If additional changes need to be incorporated before the release, the CHANGELOG must be updated manually. - - Merging this PR will automatically release all packages to NPM. - delete-branch: true diff --git a/RELEASING.md b/RELEASING.md index cdbac1c1b7..c0e908b88c 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,30 +1,11 @@ # Releasing OpenTelemetry Packages (for Maintainers Only) -This document explains how to publish all OT modules at version x.y.z. Ensure that you’re following semver when choosing a version number. - -## Auto-generate a Release PR - -Navigate to the [Create a Release PR Worflow](https://github.com/open-telemetry/opentelemetry-js-contrib/actions/workflows/release-pr.yml). Click the "Run workflow" dropdown, enter the semver-compliant version to release, then click "Run workflow". It will generate a release pull request from a branch named like `release/x.y.z`. - -## Review Release PR - -If necessary, update sample code or documentation on the `release/x.y.z` branch to be included in the release. Another maintainer should approve the PR, specifically validating the automatic updates and verifying the tests are passing. - -NOTE: If any major changes are merged while the release PR is open, the CHANGELOG on the `release/x.y.z` branch must be manually updated to reflect the change. - -## Merge Release PR - -After approval, merge the release PR. This will automatically publish all packages. Verify: - -* The [publish workflow](https://github.com/open-telemetry/opentelemetry-js-contrib/actions/workflows/publish.yml) runs successfully -* The new version is available in NPM, e.g. for the [Express instrumentation package](https://www.npmjs.com/package/@opentelemetry/instrumentation-express) -* A [GitHub Release](https://github.com/open-telemetry/opentelemetry-js-contrib/releases) was cut correctly, with a tag pointing to the new version, and a body of the changelog - -That's it! No need to read on unless something above went wrong. +This repository uses [Release Please](https://github.com/googleapis/release-please) to manage its releases automatically and independently. +Modified packages are automatically published to NPM when the auto-generated Release Please PR is merged. # Manual Publishing Process -If any step of the above automated process fails, complete the release manually by picking up at the failed step. +For posterity, or in the event of any failures with release-please, the process for performing a manual release is below. Manual Release Process Steps: From fc41d847f89728d23b67f629577ce7b0e652c0cc Mon Sep 17 00:00:00 2001 From: William Armiros Date: Mon, 20 Sep 2021 12:26:52 -0700 Subject: [PATCH 8/8] chore: addressed comments --- .github/workflows/release-please.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 07982e7a28..4163e4cdd8 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -42,7 +42,7 @@ jobs: plugins/node/*/node_modules plugins/web/*/node_modules propagators/*/node_modules - key: ${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} + key: release-${{ runner.os }}-${{ matrix.container }}-${{ hashFiles('**/package.json') }} - name: Build Packages if: ${{ steps.release.outputs.releases_created }} @@ -57,4 +57,4 @@ jobs: if: ${{ steps.release.outputs.releases_created }} env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - run: npx lerna publish from-package --no-push --no-git-tag-version --no-verify-access --yes + run: npx lerna publish from-package --no-push --no-private --no-git-tag-version --no-verify-access --yes