-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add release-please automation (#659)
- Loading branch information
1 parent
e7e0e00
commit e6465bb
Showing
86 changed files
with
239 additions
and
900 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
name: Run Release Please | ||
jobs: | ||
release-please: | ||
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: release-${{ 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-private --no-git-tag-version --no-verify-access --yes |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,3 +81,6 @@ package.json.lerna_backup | |
|
||
*.iml | ||
.idea | ||
|
||
# version.ts file is automatically generated at compile time | ||
version.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
"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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
detectors/node/opentelemetry-resource-detector-alibaba-cloud/src/version.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
detectors/node/opentelemetry-resource-detector-aws/src/version.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.