Skip to content

Commit

Permalink
Fix that release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
arendjr committed Sep 6, 2023
1 parent e76acc0 commit 977af80
Show file tree
Hide file tree
Showing 22 changed files with 102 additions and 61 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/publish_lib_to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@ jobs:

- run: yarn

- run: |
yarn build \
--workspace=@autometrics/autometrics \
--workspace=@autometrics/exporter-otlp-http \
--workspace=@autometrics/exporter-prometheus \
--workspace=@autometrics/exporter-prometheus-push-gateway
- run: |
yarn release \
--workspace=@autometrics/autometrics \
--workspace=@autometrics/exporter-otlp-http \
--workspace=@autometrics/exporter-prometheus \
--workspace=@autometrics/exporter-prometheus-push-gateway
- run: yarn release-lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/publish_parcel_plugin_to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ jobs:

- run: yarn

- run: yarn build --workspace=@autometrics/parcel-transformer-autometrics

- run: yarn release --workspace=@autometrics/parcel-transformer-autometrics
- run: yarn release
working-directory: packages/parcel-transformer-autometrics
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

5 changes: 2 additions & 3 deletions .github/workflows/publish_typescript_plugin_to_npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ jobs:

- run: yarn

- run: yarn build --workspace=@autometrics/typescript-plugin

- run: yarn release --workspace=@autometrics/typescript-plugin
- run: yarn release
working-directory: packages/typescript-plugin
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

2 changes: 1 addition & 1 deletion examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@autometrics/autometrics": "^0.6.0",
"@autometrics/exporter-prometheus": "^0.6.0",
"@autometrics/exporter-prometheus": "^0.7.0-beta5",
"express": "^4.18.2",
"node-fetch": "^3.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/faas-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@autometrics/autometrics": "^0.6.0",
"@autometrics/exporter-prometheus-push-gateway": "^0.6.0",
"@autometrics/exporter-prometheus-push-gateway": "^0.7.0-beta5",
"node-fetch": "^3.3.1"
}
}
2 changes: 1 addition & 1 deletion examples/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "MIT",
"dependencies": {
"@autometrics/autometrics": "^0.6.0",
"@autometrics/exporter-prometheus": "^0.6.0",
"@autometrics/exporter-prometheus": "^0.7.0-beta5",
"@prisma/client": "^5.2.0",
"fastify": "^4.13.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/nestjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"start:prod": "node dist/main"
},
"dependencies": {
"@autometrics/autometrics": "^0.6.0",
"@autometrics/exporter-prometheus": "^0.6.0",
"@autometrics/autometrics": "^0.7.0-beta5",
"@autometrics/exporter-prometheus": "^0.7.0-beta5",
"@nestjs/common": "^9.0.0",
"@nestjs/core": "^9.0.0",
"@nestjs/platform-express": "^9.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react-app-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"preview": "vite preview"
},
"dependencies": {
"@autometrics/autometrics": "^0.6.0",
"@autometrics/exporter-otlp-http": "^0.6.0",
"@autometrics/autometrics": "^0.7.0-beta5",
"@autometrics/exporter-otlp-http": "^0.7.0-beta5",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"build": "yarn workspaces foreach -pt --verbose --exclude=\"*-example\" run build",
"lint": "rome ci packages/**/src",
"test": "vitest",
"release:beta": "yarn workspaces foreach -pt --verbose --exclude=\"*-example\" --exclude=\"*-monorepo\" npm publish --tag beta",
"release-all": "yarn workspaces foreach -t --verbose --exclude=\"*-example\" --exclude=\"*-monorepo\" npm publish",
"release-all:beta": "yarn workspaces foreach -t --verbose --exclude=\"*-example\" --exclude=\"*-monorepo\" npm publish --tag beta",
"release-lib": "yarn workspaces foreach -t --verbose --include=\"@autometrics/autometrics\" --include=\"@autometrics/exporter-*\" npm publish",
"release-lib:beta": "yarn workspaces foreach -t --verbose --include=\"@autometrics/autometrics\" --include=\"@autometrics/exporter-*\" npm publish --tag beta",
"type-check": "yarn workspaces foreach -p --verbose run type-check",
"build:main": "yarn workspaces foreach -pt --verbose --include=\"@autometrics/autometrics\" --include=\"@autometrics/exporter-*\" run build",
"dev:main": "yarn workspaces foreach -pt --verbose --include=\"@autometrics/autometrics\" --include=\"@autometrics/exporter-*\" run dev",
Expand All @@ -36,4 +39,4 @@
"typescript": "^5.0.4",
"vitest": "^0.34.3"
}
}
}
7 changes: 7 additions & 0 deletions packages/autometrics/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
reference
src
tests
tsconfig.json
tsup.config.ts
typedoc.json
7 changes: 4 additions & 3 deletions packages/autometrics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autometrics/autometrics",
"version": "0.7.0-beta4",
"version": "0.7.0-beta5",
"type": "module",
"description": "Easily add metrics to your system -- and actually understand them using automatically customized Prometheus queries",
"author": "Fiberplane <[email protected]>",
Expand All @@ -13,7 +13,7 @@
"Arend van Beelen jr."
],
"repository": {
"url": "https://github.com/autometrics-dev/autometrics-ts.git"
"url": "git+https://github.com/autometrics-dev/autometrics-ts.git"
},
"license": "MIT",
"publishConfig": {
Expand All @@ -27,6 +27,7 @@
"build": "tsup",
"docs": "typedoc",
"dev": "tsup --watch",
"prepublish": "yarn build",
"release": "npm publish",
"type-check": "tsc -p tsconfig.json"
},
Expand All @@ -43,4 +44,4 @@
"typedoc-plugin-markdown": "^3.16.0",
"typescript": "^5.0.4"
}
}
}
5 changes: 5 additions & 0 deletions packages/exporter-otlp-http/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
src
tests
tsconfig.json
tsup.config.ts
9 changes: 5 additions & 4 deletions packages/exporter-otlp-http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autometrics/exporter-otlp-http",
"version": "0.7.0-beta4",
"version": "0.7.0-beta5",
"type": "module",
"description": "Export metrics using OTLP over HTTP/JSON",
"author": "Fiberplane <[email protected]>",
Expand All @@ -13,7 +13,7 @@
"Arend van Beelen jr."
],
"repository": {
"url": "https://github.com/autometrics-dev/autometrics-ts.git"
"url": "git+https://github.com/autometrics-dev/autometrics-ts.git"
},
"license": "MIT",
"publishConfig": {
Expand All @@ -27,11 +27,12 @@
"build": "tsup",
"docs": "typedoc",
"dev": "tsup --watch",
"prepublish": "yarn build",
"release": "npm publish",
"type-check": "tsc -p tsconfig.json"
},
"dependencies": {
"@autometrics/autometrics": "0.7.0-beta4",
"@autometrics/autometrics": "0.7.0-beta5",
"@opentelemetry/api": "^1.3.0",
"@opentelemetry/exporter-metrics-otlp-http": "^0.41.0",
"@opentelemetry/sdk-metrics": ">=1.15.0"
Expand All @@ -41,4 +42,4 @@
"tsup": "^7.2.0",
"typescript": "^5.0.4"
}
}
}
5 changes: 5 additions & 0 deletions packages/exporter-prometheus-push-gateway/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
src
tests
tsconfig.json
tsup.config.ts
9 changes: 5 additions & 4 deletions packages/exporter-prometheus-push-gateway/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autometrics/exporter-prometheus-push-gateway",
"version": "0.7.0-beta4",
"version": "0.7.0-beta5",
"type": "module",
"description": "Export metrics by pushing them to a Prometheus-compatible gateway",
"author": "Fiberplane <[email protected]>",
Expand All @@ -13,7 +13,7 @@
"Arend van Beelen jr."
],
"repository": {
"url": "https://github.com/autometrics-dev/autometrics-ts.git"
"url": "git+https://github.com/autometrics-dev/autometrics-ts.git"
},
"license": "MIT",
"publishConfig": {
Expand All @@ -27,11 +27,12 @@
"build": "tsup",
"docs": "typedoc",
"dev": "tsup --watch",
"prepublish": "yarn build",
"release": "npm publish",
"type-check": "tsc -p tsconfig.json"
},
"dependencies": {
"@autometrics/autometrics": "0.7.0-beta4",
"@autometrics/autometrics": "0.7.0-beta5",
"@opentelemetry/api": "^1.3.0",
"@opentelemetry/core": "^1.15.2",
"@opentelemetry/exporter-prometheus": ">=0.35.1",
Expand All @@ -42,4 +43,4 @@
"tsup": "^7.2.0",
"typescript": "^5.0.4"
}
}
}
5 changes: 5 additions & 0 deletions packages/exporter-prometheus/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
src
tests
tsconfig.json
tsup.config.ts
9 changes: 5 additions & 4 deletions packages/exporter-prometheus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autometrics/exporter-prometheus",
"version": "0.7.0-beta4",
"version": "0.7.0-beta5",
"type": "module",
"description": "Export metrics by opening up a Prometheus scrape endpoint",
"author": "Fiberplane <[email protected]>",
Expand All @@ -13,7 +13,7 @@
"Arend van Beelen jr."
],
"repository": {
"url": "https://github.com/autometrics-dev/autometrics-ts.git"
"url": "git+https://github.com/autometrics-dev/autometrics-ts.git"
},
"license": "MIT",
"publishConfig": {
Expand All @@ -27,11 +27,12 @@
"build": "tsup",
"docs": "typedoc",
"dev": "tsup --watch",
"prepublish": "yarn build",
"release": "npm publish",
"type-check": "tsc -p tsconfig.json"
},
"dependencies": {
"@autometrics/autometrics": "0.7.0-beta4",
"@autometrics/autometrics": "0.7.0-beta5",
"@opentelemetry/api": "^1.3.0",
"@opentelemetry/exporter-prometheus": ">=0.41.2",
"@opentelemetry/sdk-metrics": ">=1.15.0"
Expand All @@ -41,4 +42,4 @@
"tsup": "^7.2.0",
"typescript": "^5.0.4"
}
}
}
3 changes: 3 additions & 0 deletions packages/parcel-transformer-autometrics/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
src
tsconfig.json
5 changes: 3 additions & 2 deletions packages/parcel-transformer-autometrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"Stephan Lagerwaard"
],
"repository": {
"url": "https://github.com/autometrics-dev/autometrics-ts.git"
"url": "git+https://github.com/autometrics-dev/autometrics-ts.git"
},
"license": "MIT OR Apache-2.0",
"publishConfig": {
Expand All @@ -23,6 +23,7 @@
"dev": "tsc --watch",
"build": "tsc",
"clean": "rm -rf dist/",
"prepublish": "yarn build",
"release": "npm publish",
"type-check": "tsc -p tsconfig.json"
},
Expand All @@ -35,4 +36,4 @@
"@types/node": "^20.5.7",
"vitest": "^0.34.3"
}
}
}
3 changes: 3 additions & 0 deletions packages/typescript-plugin/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
src
tsconfig.json
5 changes: 3 additions & 2 deletions packages/typescript-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Stephan Lagerwaard"
],
"repository": {
"url": "https://github.com/autometrics-dev/autometrics-ts.git"
"url": "git+https://github.com/autometrics-dev/autometrics-ts.git"
},
"license": "MIT",
"publishConfig": {
Expand All @@ -24,10 +24,11 @@
"dev": "tsc --watch",
"build": "tsc",
"clean": "rm -rf dist/",
"prepublish": "yarn build",
"release": "npm publish",
"type-check": "tsc -p tsconfig.json"
},
"devDependencies": {
"typescript": "^5.0.4"
}
}
}
Loading

0 comments on commit 977af80

Please sign in to comment.