Skip to content

Commit 33b99cc

Browse files
MA-22157: add bin file
1 parent 7789bca commit 33b99cc

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

.github/actions/bump-version/action.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ inputs:
1111

1212
outputs:
1313
prev_version:
14+
description: Previous version of the package before bumping
1415
value: ${{ steps.internal_id_prev_version.outputs.value }}
1516
next_version:
17+
description: New version of the package after bumping
1618
value: ${{ steps.internal_id_next_version.outputs.value }}
1719

1820
runs:
@@ -25,12 +27,12 @@ runs:
2527

2628
- name: Bump version
2729
if: ${{ !inputs.npm_tag }}
28-
run: yarn version --new-version "${{ inputs.version }}" --no-commit-hooks
30+
run: yarn version ${{ inputs.version }} --deferred
2931
shell: bash
3032

3133
- name: Bump version with npm_tag
3234
if: ${{ inputs.npm_tag }}
33-
run: yarn version --new-version "${{ inputs.version }}" --preid ${{ inputs.npm_tag }} --no-commit-hooks
35+
run: yarn version apply --${{ inputs.version }}=${{ inputs.npm_tag }}
3436
shell: bash
3537

3638
- name: Saving new version to env

.github/actions/complete-publish/action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ runs:
3535

3636
- name: Publishing release
3737
if: ${{ !inputs.npm_tag }}
38-
run: yarn publish --access public --non-interactive
38+
run: yarn npm publish --access public
3939
env:
40-
NODE_AUTH_TOKEN: ${{ inputs.npm_token }}
40+
YARN_NPM_AUTH_TOKEN: ${{ inputs.npm_token }}
4141
shell: bash
4242

4343
- name: Publishing release with npm_tag
4444
if: ${{ inputs.npm_tag }}
45-
run: yarn publish --access public --non-interactive --tag ${{ inputs.npm_tag }}
45+
run: yarn npm publish --access public --tag ${{ inputs.npm_tag }}
4646
env:
47-
NODE_AUTH_TOKEN: ${{ inputs.npm_token }}
47+
YARN_NPM_AUTH_TOKEN: ${{ inputs.npm_token }}
4848
shell: bash

.github/workflows/publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- name: Checkout
2323
uses: actions/checkout@v4
2424
with:
25+
fetch-depth: 0
2526
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
2627

2728
- name: Setting up the repository environment

.github/workflows/publish_prerelease.yml

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- name: Checkout
3636
uses: actions/checkout@v4
3737
with:
38+
fetch-depth: 0
3839
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
3940

4041
- name: Setting up the repository environment

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@ coverage
2727
# GitHub
2828
.github/*
2929

30+
.yarn/
31+
3032
/bin

src/entities/HttpProxy.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export class HttpProxy {
1212
return await axios({
1313
url: proxiedServerUrl,
1414
data: parsedRequest.body,
15+
maxRedirects: 0,
1516
headers: parsedRequest.headers,
1617
method: parsedRequest.method as Method,
1718
responseType: 'arraybuffer',

0 commit comments

Comments
 (0)