Skip to content

Commit

Permalink
feat(ci): add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Ryazanov committed Jul 14, 2023
1 parent 4521c70 commit f45a46d
Show file tree
Hide file tree
Showing 20 changed files with 343 additions and 31 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: release

on:
push:
branches:
- master

env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.TINKOFF_BOT_PAT }}

jobs:
release:
if: "!contains(github.event.head_commit.message, 'chore(release)')"

runs-on: ubuntu-latest

steps:
- name: Initialize Git user
run: |
git config --global user.name 'tinkoff-bot'
git config --global user.email '[email protected]'
- uses: actions/checkout@v3
with:
token: ${{ secrets.TINKOFF_BOT_PAT }}

- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: yarn bootstrap

- name: Build
run: yarn build

- name: Release
run: yarn publish --conventional-commits --yes --create-release github
30 changes: 0 additions & 30 deletions CHANGELOG.md

This file was deleted.

7 changes: 6 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"packages": [
"packages/*"
],
"version": "independent"
"version": "independent",
"command": {
"version": {
"message": "chore(release): version %s"
}
}
}
16 changes: 16 additions & 0 deletions packages/cache-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## [0.9.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* **cache-utils:** enable caching with cache: true for disabled by default requests ([005d953](https://github.com/Tinkoff/tinkoff-request/commit/005d953604daf473565af6f533743c8da3831ef8))
* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



30 changes: 30 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## [0.9.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* **core:** remove sensitive data from error object ([#40](https://github.com/Tinkoff/tinkoff-request/issues/40)) ([872dcfe](https://github.com/Tinkoff/tinkoff-request/commit/872dcfe9225c92fcc420c8bcb189ccd78e062a21))
* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



## 0.8.4 (2020-02-17)


### Bug Fixes

* **core:** extend error object by request info ([#33](https://github.com/Tinkoff/tinkoff-request/issues/33)) ([7883c73](https://github.com/Tinkoff/tinkoff-request/commit/7883c73d0376ba0bcabe8f7ef78a47e462411c53))


### Features

* **core:** add error handling ([b8b875c](https://github.com/Tinkoff/tinkoff-request/commit/b8b875c6684def3d2652a01d5dcfa31f0bcd1298))
* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))



15 changes: 15 additions & 0 deletions packages/plugin-batch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## [0.9.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



15 changes: 15 additions & 0 deletions packages/plugin-cache-deduplicate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## [0.9.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



19 changes: 19 additions & 0 deletions packages/plugin-cache-etag/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## [0.3.8](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* **cache-etag:** fix @tinkoff/request-plugin-protocol-http version ([036f506](https://github.com/Tinkoff/tinkoff-request/commit/036f506d9c5948aa89091a9034e9ba1575957187))
* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* **plugin-cache-etag:** add new plugin for caching basing on etag http-header ([#11](https://github.com/Tinkoff/tinkoff-request/issues/11)) ([3172d56](https://github.com/Tinkoff/tinkoff-request/commit/3172d56f9d36c8999d8984a004e8567d7d02cf6c))
* **protocol-http:** replace superagent with fetch (or node-fetch for node) ([353dabb](https://github.com/Tinkoff/tinkoff-request/commit/353dabbffebe18060f62ff2527353137e4b63a8f))
* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* update lru-cache ([dc65ec9](https://github.com/Tinkoff/tinkoff-request/commit/dc65ec92fb185b0100d5a87f4aecadc39f2a9cd5))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



17 changes: 17 additions & 0 deletions packages/plugin-cache-fallback/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## [0.10.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* **cache-fallback:** add ability to specify driver used to store fallback cache ([#43](https://github.com/Tinkoff/tinkoff-request/issues/43)) ([5778e01](https://github.com/Tinkoff/tinkoff-request/commit/5778e01a0281f5772f2c2d879649e89c045209fe))
* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* update lru-cache ([dc65ec9](https://github.com/Tinkoff/tinkoff-request/commit/dc65ec92fb185b0100d5a87f4aecadc39f2a9cd5))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



20 changes: 20 additions & 0 deletions packages/plugin-cache-memory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## [0.9.3](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* **cache-memory:** do not abort background memory requests ([80395f9](https://github.com/Tinkoff/tinkoff-request/commit/80395f9be96cb73e62d09590aa89f043ab8ca679))
* **cache-memory:** fix unhandled rejection when renew cache in background fails ([a5a50a4](https://github.com/Tinkoff/tinkoff-request/commit/a5a50a463f632614b8be4bc39d540d3503b44914))
* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* **cache-memory:** allow to specify time of life for outdated value in memory cache ([48bd8ad](https://github.com/Tinkoff/tinkoff-request/commit/48bd8adb52cac7aea3f5a42ab6f1999edec4c704))
* parametrize background requests timeout ([#88](https://github.com/Tinkoff/tinkoff-request/issues/88)) ([d391fae](https://github.com/Tinkoff/tinkoff-request/commit/d391fae684a0d4ff2a5990ad4114c82f1208e09e))
* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* update lru-cache ([dc65ec9](https://github.com/Tinkoff/tinkoff-request/commit/dc65ec92fb185b0100d5a87f4aecadc39f2a9cd5))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



15 changes: 15 additions & 0 deletions packages/plugin-cache-persistent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## [0.9.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



11 changes: 11 additions & 0 deletions packages/plugin-circuit-breaker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## [0.3.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Features

* **circuit-breaker:** add ability to specify error check for circuit breaker fail request status ([aacb719](https://github.com/Tinkoff/tinkoff-request/commit/aacb719ff17f76df51317698cf1c2e56c607b731))
* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



18 changes: 18 additions & 0 deletions packages/plugin-log/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## [0.9.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))
* **log:** move logging to debug level instead of info ([#45](https://github.com/Tinkoff/tinkoff-request/issues/45)) ([340b83a](https://github.com/Tinkoff/tinkoff-request/commit/340b83a64306e4949d9624cc1f37d48c81e18c52))
* **log:** refactor log format to simplify usage after json conversion ([#32](https://github.com/Tinkoff/tinkoff-request/issues/32)) ([e674ecc](https://github.com/Tinkoff/tinkoff-request/commit/e674ecc3cdb02b446655fd735dbacc1fa1548b58))


### Features

* **log:** mask query and payload values by default ([#39](https://github.com/Tinkoff/tinkoff-request/issues/39)) ([3ecbd21](https://github.com/Tinkoff/tinkoff-request/commit/3ecbd21a4ceda981e504dda05fbadcc0e5e310d4))
* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



16 changes: 16 additions & 0 deletions packages/plugin-prom-red-metrics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## [0.2.8](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))
* **prom-red-metrics:** Added reexport for http variables ([#36](https://github.com/Tinkoff/tinkoff-request/issues/36)) ([20375d6](https://github.com/Tinkoff/tinkoff-request/commit/20375d6055d916406b299c612ba4cf1022ba46fa))


### Features

* **prom-red-metrics:** Prometheus metrics plugin added ([#34](https://github.com/Tinkoff/tinkoff-request/issues/34)) ([e40e950](https://github.com/Tinkoff/tinkoff-request/commit/e40e95010bcb05cb9dfbff0158f9ae185cb089cb))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



37 changes: 37 additions & 0 deletions packages/plugin-protocol-http/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## [0.11.8](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* add special case for getting set-cookie header ([d1625cd](https://github.com/Tinkoff/tinkoff-request/commit/d1625cd8c39b761e609e2dcbdae00e8f2caef5e0))
* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))
* **protocol-http:** add body prop to error object ([#38](https://github.com/Tinkoff/tinkoff-request/issues/38)) ([0914e16](https://github.com/Tinkoff/tinkoff-request/commit/0914e1626a56b1c4b62dfee2e298f9ebc8c2ac26))
* **protocol-http:** add error object when timeout has happened ([60a3d30](https://github.com/Tinkoff/tinkoff-request/commit/60a3d3015105277da4c7869942d8ee133306e573))
* **protocol-http:** add parsed response despite response status ([3d0d4a4](https://github.com/Tinkoff/tinkoff-request/commit/3d0d4a487ca39072e855baea0a69fee87caa519f))
* **protocol-http:** do not add empty string values to query if value not set ([dbdf058](https://github.com/Tinkoff/tinkoff-request/commit/dbdf058ba3a8a283439a3d9c311f6d1f304c68d4))
* **protocol-http:** fix bug with usage of abortPromise ([#13](https://github.com/Tinkoff/tinkoff-request/issues/13)) ([f5e1e00](https://github.com/Tinkoff/tinkoff-request/commit/f5e1e0033b847f3761d0fbeebc3a37e84d418d56))
* **protocol-http:** fix check for node environment ([91ae882](https://github.com/Tinkoff/tinkoff-request/commit/91ae882236923ecf21718dd3d8e60c441a2f6fe9))
* **protocol-http:** fix promise reject error when abortPromise was used ([8e686d9](https://github.com/Tinkoff/tinkoff-request/commit/8e686d9f1ae6229213c171074b6a99e710c3be73))
* **protocol-http:** fix serialize nested objects ([36fa003](https://github.com/Tinkoff/tinkoff-request/commit/36fa00342e6096b3ab30bb1ba4fc44f9acebecdc))
* **protocol-http:** fix timeout option on node ([00eec54](https://github.com/Tinkoff/tinkoff-request/commit/00eec54ea28f48b4ed8eb65a0f3333df9343099e))
* **protocol-http:** fix usage of node-fetch in browser ([3034a22](https://github.com/Tinkoff/tinkoff-request/commit/3034a22e3bb154bf4f621d1921c009d83267644d))
* **protocol-http:** handle formData properly in browser ([d395346](https://github.com/Tinkoff/tinkoff-request/commit/d395346a5ab2ec49bbfcc9463631744a08c12ad9))
* **protocol-http:** handle TypeError: Cannot read property 'status' of undefined ([faed351](https://github.com/Tinkoff/tinkoff-request/commit/faed35179785b811f9860469ef381e5048f0e7d6))
* **protocol-http:** remove beforeunload handler ([59dfed0](https://github.com/Tinkoff/tinkoff-request/commit/59dfed06f2ff8ad5f02b4c2b25094f367de10906))
* **protocol-http:** set httpMethod to uppercase ([8d612b6](https://github.com/Tinkoff/tinkoff-request/commit/8d612b662063a91dc10e9bd3db22fd9f43534bec))


### Features

* **circuit-breaker:** add ability to specify error check for circuit breaker fail request status ([aacb719](https://github.com/Tinkoff/tinkoff-request/commit/aacb719ff17f76df51317698cf1c2e56c607b731))
* **http:** new credentials option ([e0ca825](https://github.com/Tinkoff/tinkoff-request/commit/e0ca825985d5a6d19fca320ac5daf0ac593fc745))
* **http:** new request parameter signal ([3f9830e](https://github.com/Tinkoff/tinkoff-request/commit/3f9830eabfe1a14511e3714a4cbb0f34a3a583bc))
* **protocol-http:** add possibility to specify custom querySerializer ([828a223](https://github.com/Tinkoff/tinkoff-request/commit/828a223af8eb2aaaa3e9c4780b507339728a044a))
* **protocol-http:** parse response array buffer ([46eba51](https://github.com/Tinkoff/tinkoff-request/commit/46eba5116217a3e209177a27d7be797a3048d625))
* **protocol-http:** replace superagent with fetch (or node-fetch for node) ([353dabb](https://github.com/Tinkoff/tinkoff-request/commit/353dabbffebe18060f62ff2527353137e4b63a8f))
* split context.meta into context.internalMeta and context.externalMeta ([31f00e0](https://github.com/Tinkoff/tinkoff-request/commit/31f00e0ae14767f213a67eb2df349c9f75adcfe7))
* **url-utils:** move url utils to separate package ([1ab2397](https://github.com/Tinkoff/tinkoff-request/commit/1ab239709142460ac5cdacfb93714ad5a0e7d277))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



17 changes: 17 additions & 0 deletions packages/plugin-protocol-jsonp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## [0.2.4](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* **protocol-jsonp:** add plugin for making jsonp requests ([ba18859](https://github.com/Tinkoff/tinkoff-request/commit/ba188599377436ba4814d16cf3f0d47c1cf0eaac))
* **protocol-jsonp:** add possibility to specify custom querySerializer ([5c1d92a](https://github.com/Tinkoff/tinkoff-request/commit/5c1d92a439d28969713d537fb04edaf6318334e4))
* **url-utils:** move url utils to separate package ([1ab2397](https://github.com/Tinkoff/tinkoff-request/commit/1ab239709142460ac5cdacfb93714ad5a0e7d277))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



16 changes: 16 additions & 0 deletions packages/plugin-retry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## [0.2.3](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))
* **retry:** prevent retry requests from duplicating caching ([8db5a52](https://github.com/Tinkoff/tinkoff-request/commit/8db5a5223ccfd97c74e70df0c1a523e7dfd42b45))


### Features

* **retry:** add plugin for retry failed requests ([#42](https://github.com/Tinkoff/tinkoff-request/issues/42)) ([ff0e04e](https://github.com/Tinkoff/tinkoff-request/commit/ff0e04e933b46a8bdad488bf8882f0c0d19b6cb9))
* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



14 changes: 14 additions & 0 deletions packages/plugin-transform-url/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## [0.9.2](https://github.com/Tinkoff/tinkoff-request/compare/@tinkoff/[email protected]...@tinkoff/[email protected]) (2023-07-14)


### Bug Fixes

* extend typings ([1fcc2cb](https://github.com/Tinkoff/tinkoff-request/commit/1fcc2cb32597b10d788de36303507e385042fc96))


### Features

* use @tramvai/build as builder to provide modern es version ([3a26224](https://github.com/Tinkoff/tinkoff-request/commit/3a26224221d4fc073938cf32c2f147515620c28e))



Loading

0 comments on commit f45a46d

Please sign in to comment.