Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add release-please automation #659

Merged
merged 11 commits into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -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}}
dyladan marked this conversation as resolved.
Show resolved Hide resolved
default-branch: main
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,6 @@ package.json.lerna_backup

*.iml
.idea

# version.ts file is automatically generated at compile time
version.ts
42 changes: 42 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The manifest will be regenerated anyway on the next release so having extra entries is actually not a problem. Missing entries would be a bigger deal.

"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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"propagators/*",
"detectors/node/*"
],
"version": "0.24.0",
"version": "independent",
"changelog": {
"repo": "open-telemetry/opentelemetry-js-contrib",
"labels": {
Expand Down
3 changes: 2 additions & 1 deletion metapackages/auto-instrumentations-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down
3 changes: 2 additions & 1 deletion metapackages/auto-instrumentations-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 0 additions & 18 deletions metapackages/auto-instrumentations-web/src/version.ts

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/opentelemetry-host-metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-host-metrics/src/version.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/opentelemetry-id-generator-aws-xray/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-id-generator-aws-xray/src/version.ts

This file was deleted.

3 changes: 2 additions & 1 deletion packages/opentelemetry-test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
Expand Down
Loading