Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare 1.2.81 that corrects axios issues #495

Merged
merged 9 commits into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Zombienet Packages Test Releases

on:
push:
branches: [nik-fix-axios]

jobs:
test_release_for_linux:
name: build_release_for_linux
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: checkout
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "16"
- run: npm install
- run: npm run build
- run: npm run package
- run: ./bins/zombienet-linux
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: test zombienet-linux
run: ./bins/zombienet-linux
test_release_for_mac:
name: build_release_for_mac
needs: test_release_for_linux
runs-on: macos-latest
steps:
- name: checkout
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "16"
- run: npm install
- run: npm run build
- run: npm run package
- name: upload macos artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ needs.build_release_for_linux.outputs.upload_url }}
asset_path: ./bins/zombienet-macos
asset_name: zombienet-macos
asset_content_type: application/octet-stream
34 changes: 11 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@polkadot/keyring": "^10.1.6",
"@polkadot/util-crypto": "^10.1.6",
"@types/chai": "^4.3.3",
"axios": "^1.1.2",
"axios": "^0.27.2",
"chai": "^4.3.4",
"cli-table3": "^0.6.2",
"commander": "^9.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const downloadBinaries = async (binaries: string[]): Promise<void> => {
method: "GET",
responseType: "stream",
});
const totalLength = headers["content-length"] as string;
const totalLength = headers["content-length"];

const progressBar = new progress(
"-> downloading [:bar] :percent :etas",
Expand Down