Skip to content

Commit

Permalink
chore: add release-please automation (#2431)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Marchaud <[email protected]>
  • Loading branch information
dyladan and vmarchaud authored Aug 30, 2021
1 parent 7d2c4aa commit f0caa22
Show file tree
Hide file tree
Showing 60 changed files with 170 additions and 499 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
push:
branches:
- main
name: 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
7 changes: 5 additions & 2 deletions .github/workflows/w3c-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,21 @@ jobs:
integration-tests/*/package-lock.json
key: ${{ runner.os }}-w3c_integration-${{ hashFiles('**/package.json') }}

- name: Install and Build (cache miss) 🔧
- name: Install and Bootstrap (cache miss) 🔧
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install --ignore-scripts
npx lerna bootstrap --no-ci --scope=propagation-validation-server --include-dependencies
- name: Install and Build (cache hit) 🔧
- name: Install and Bootstrap (cache hit) 🔧
if: steps.cache.outputs.cache-hit == 'true'
run: |
npm ci --ignore-scripts
npx lerna bootstrap --scope=propagation-validation-server --include-dependencies
- name: Generate version.ts files
run: lerna run version

- name: Build 🔧
run: npm run compile
working-directory: ./integration-tests/propagation-validation-server
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# version.ts file is automatically generated at compile time

version.ts

# Logs
logs
*.log
Expand Down
28 changes: 28 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"packages/opentelemetry-api-metrics": "0.25.0",
"packages/opentelemetry-context-async-hooks": "0.25.0",
"packages/opentelemetry-context-zone-peer-dep": "0.25.0",
"packages/opentelemetry-context-zone": "0.25.0",
"packages/opentelemetry-core": "0.25.0",
"packages/opentelemetry-exporter-collector-grpc": "0.25.0",
"packages/opentelemetry-exporter-collector-proto": "0.25.0",
"packages/opentelemetry-exporter-collector": "0.25.0",
"packages/opentelemetry-exporter-jaeger": "0.25.0",
"packages/opentelemetry-exporter-prometheus": "0.25.0",
"packages/opentelemetry-exporter-zipkin": "0.25.0",
"packages/opentelemetry-instrumentation-fetch": "0.25.0",
"packages/opentelemetry-instrumentation-grpc": "0.25.0",
"packages/opentelemetry-instrumentation-http": "0.25.0",
"packages/opentelemetry-instrumentation-xml-http-request": "0.25.0",
"packages/opentelemetry-instrumentation": "0.25.0",
"packages/opentelemetry-propagator-b3": "0.25.0",
"packages/opentelemetry-propagator-jaeger": "0.25.0",
"packages/opentelemetry-resources": "0.25.0",
"packages/opentelemetry-sdk-metrics-base": "0.25.0",
"packages/opentelemetry-sdk-node": "0.25.0",
"packages/opentelemetry-sdk-trace-base": "0.25.0",
"packages/opentelemetry-sdk-trace-node": "0.25.0",
"packages/opentelemetry-sdk-trace-web": "0.25.0",
"packages/opentelemetry-semantic-conventions": "0.25.0",
"packages/opentelemetry-shim-opentracing": "0.25.0"
}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"packages/*",
"integration-tests/*"
],
"version": "0.25.0",
"version": "independent",
"changelog": {
"repo": "open-telemetry/opentelemetry-js",
"labels": {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "opentelemetry",
"version": "0.25.0",
"version": "0.1.0",
"description": "OpenTelemetry is a distributed tracing and stats collection framework.",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
"scripts": {
"precompile": "lerna run version",
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
"prewatch": "npm run precompile",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json",
"bench": "node benchmark",
Expand Down
4 changes: 3 additions & 1 deletion packages/opentelemetry-api-metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-api-metrics/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-context-async-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../scripts/version-update.js"
"version": "node ../../scripts/version-update.js",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-context-async-hooks/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-context-zone-peer-dep/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"version": "node ../../scripts/version-update.js",
"tdd": "karma start",
"test:browser": "nyc karma start --single-run",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-context-zone-peer-dep/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-context-zone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-context-zone/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-core/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-exporter-collector-grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"tdd": "npm run test -- --watch-extensions ts --watch",
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
"version": "node ../../scripts/version-update.js",
"watch": "npm run protos:copy && tsc -w"
"watch": "npm run protos:copy && tsc -w",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-exporter-collector-grpc/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-exporter-collector-proto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"tdd": "npm run test -- --watch-extensions ts --watch",
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'",
"version": "node ../../scripts/version-update.js",
"watch": "npm run protos:copy && tsc -w"
"watch": "npm run protos:copy && tsc -w",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-exporter-collector-proto/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-exporter-collector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"test": "nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'",
"test:browser": "nyc karma start --single-run",
"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json"
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-exporter-collector/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-exporter-jaeger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch"
"watch": "tsc --build --watch",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
18 changes: 0 additions & 18 deletions packages/opentelemetry-exporter-jaeger/src/version.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/opentelemetry-exporter-prometheus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"version": "node ../../scripts/version-update.js",
"watch": "tsc --build --watch"
"watch": "tsc --build --watch",
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
"prewatch": "npm run precompile"
},
"keywords": [
"opentelemetry",
Expand Down
Loading

0 comments on commit f0caa22

Please sign in to comment.