From 57036c1b03fb828be9e7e3e38209acc78f5b5383 Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Tue, 28 Apr 2020 19:30:12 +0530 Subject: [PATCH 01/12] fix: Removed travis config --- .travis.yml.sample | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .travis.yml.sample diff --git a/.travis.yml.sample b/.travis.yml.sample deleted file mode 100644 index c2e8e10..0000000 --- a/.travis.yml.sample +++ /dev/null @@ -1,20 +0,0 @@ -language: node_js -cache: - directories: - - ~/.npm -notifications: - email: false -node_js: - - '10' - - '11' - - '8' - - '6' -script: - - npm run test:prod && npm run build -after_success: - - npm run travis-deploy-once "npm run report-coverage" - - if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run travis-deploy-once "npm run deploy-docs"; fi - - if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run travis-deploy-once "npm run semantic-release"; fi -branches: - except: - - /^v\d+\.\d+\.\d+$/ From 32dd643adcaf64d846ce6d6c336a9877b9ed0194 Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Tue, 28 Apr 2020 20:39:49 +0530 Subject: [PATCH 02/12] update: github build config. --- .github/workflows/build.yml | 42 +++++++++++++------------------------ .github/workflows/pr.yml | 8 ++++--- 2 files changed, 19 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4207c7f..89fe000 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,44 +13,30 @@ jobs: strategy: matrix: os: [windows-latest, macos-latest, ubuntu-latest] - rust: + node: - stable - - beta - - nightly + - lts fail-fast: false steps: - uses: actions/checkout@v2 - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - override: true - components: rustfmt, clippy - - - name: Cargo build - uses: actions-rs/cargo@v1 - with: - command: build - args: --release --all - - name: Upload Artifact (Linux/MacOS) uses: actions/upload-artifact@v1 - if: matrix.rust == 'stable' && matrix.os != 'windows-latest' + if: matrix.os != 'windows-latest' with: name: juno-${{matrix.os}} path: target/release/juno - + - name: Upload Artifact (Windows) uses: actions/upload-artifact@v1 - if: matrix.rust == 'stable' && matrix.os == 'windows-latest' + if: matrix.os == 'windows-latest' with: name: juno-${{matrix.os}} path: target/release/juno.exe - release-master: # Publish release on push to master + # Publish release on push to master + release-master: if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest needs: build @@ -61,10 +47,10 @@ jobs: - name: Check Release Version uses: thebongy/version-check@v1 with: - file: Cargo.toml + file: package.json tagFormat: v${version} id: version_check - + - name: Download Windows Artifact uses: actions/download-artifact@v1 with: @@ -82,7 +68,7 @@ jobs: with: name: juno-ubuntu-latest path: release/linux - + - name: Rename Artifacts run: | mv release/windows/juno.exe release/windows/juno-${{steps.version_check.outputs.releaseVersion}}-windows.exe @@ -110,10 +96,10 @@ jobs: - name: Check Release Version uses: thebongy/version-check@v1 with: - file: Cargo.toml + file: package.json tagFormat: v${version}-beta id: version_check - + - name: Download Windows Artifact uses: actions/download-artifact@v1 with: @@ -131,7 +117,7 @@ jobs: with: name: juno-ubuntu-latest path: release/linux - + - name: Rename Artifacts run: | mv release/windows/juno.exe release/windows/juno-${{steps.version_check.outputs.releaseVersion}}-windows.exe @@ -146,4 +132,4 @@ jobs: prerelease: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - + diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 77e7dd0..af50206 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,8 +3,10 @@ on: branches: - master - staging - - develop + - develop + name: Continuous integration (PR) + jobs: version-check: if: github.base_ref == 'staging' || github.base_ref == 'master' @@ -21,7 +23,7 @@ jobs: file: package.json tagFormat: v${version}-beta id: version_check_staging - + - name: Check Release Version (master) if: github.base_ref == 'master' uses: thebongy/version-check@v1 @@ -45,7 +47,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: npm ci - + - name: Publish to npm uses: actions-rs/cargo@v1 with: From 4f8481f3c4b35ee83b95ce906b36195dc4148f8a Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Wed, 29 Apr 2020 22:58:15 +0530 Subject: [PATCH 03/12] fix: removed travis check --- package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3755a1c..c3bc724 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "node": ">=6.0.0" }, "scripts": { - "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", + "lint": "tslint --project ./tsconfig/tsconfig.base.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", "prebuild": "rimraf dist", "build": "rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src", "start": "rollup -c rollup.config.ts -w", @@ -31,8 +31,7 @@ "commit": "git-cz", "semantic-release": "semantic-release", "semantic-release-prepare": "ts-node tools/semantic-release-prepare", - "precommit": "lint-staged", - "travis-deploy-once": "travis-deploy-once" + "precommit": "lint-staged" }, "lint-staged": { "{src,test}/**/*.ts": [ From 7a561d7a8eac0d3959c58d0728a5a2827d8866b7 Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Thu, 30 Apr 2020 01:34:12 +0530 Subject: [PATCH 04/12] WIP: github config --- .github/workflows/build.yml | 76 +++++-------------------------------- .github/workflows/pr.yml | 24 +++++------- 2 files changed, 20 insertions(+), 80 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89fe000..03441eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,31 +9,23 @@ name: Continuous integration jobs: build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest, macos-latest, ubuntu-latest] - node: - - stable - - lts - fail-fast: false + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Upload Artifact (Linux/MacOS) - uses: actions/upload-artifact@v1 - if: matrix.os != 'windows-latest' + - name: Setup nodejs + uses: actions/setup-node@v1 with: - name: juno-${{matrix.os}} - path: target/release/juno + node-version: '12.x' + + - name: Install dependencies + run: npm ci - - name: Upload Artifact (Windows) - uses: actions/upload-artifact@v1 - if: matrix.os == 'windows-latest' + - name: Publish to npm + uses: actions/setup-node@v1 with: - name: juno-${{matrix.os}} - path: target/release/juno.exe + command: npm publish # Publish release on push to master release-master: @@ -51,30 +43,6 @@ jobs: tagFormat: v${version} id: version_check - - name: Download Windows Artifact - uses: actions/download-artifact@v1 - with: - name: juno-windows-latest - path: release/windows - - - name: Download MacOS Artifact - uses: actions/download-artifact@v1 - with: - name: juno-macos-latest - path: release/macos - - - name: Download Linux Artifact - uses: actions/download-artifact@v1 - with: - name: juno-ubuntu-latest - path: release/linux - - - name: Rename Artifacts - run: | - mv release/windows/juno.exe release/windows/juno-${{steps.version_check.outputs.releaseVersion}}-windows.exe - mv release/macos/juno release/macos/juno-${{steps.version_check.outputs.releaseVersion}}-macos - mv release/linux/juno release/linux/juno-${{steps.version_check.outputs.releaseVersion}}-linux - - name: Publish Release uses: softprops/action-gh-release@v1 with: @@ -100,30 +68,6 @@ jobs: tagFormat: v${version}-beta id: version_check - - name: Download Windows Artifact - uses: actions/download-artifact@v1 - with: - name: juno-windows-latest - path: release/windows - - - name: Download MacOS Artifact - uses: actions/download-artifact@v1 - with: - name: juno-macos-latest - path: release/macos - - - name: Download Linux Artifact - uses: actions/download-artifact@v1 - with: - name: juno-ubuntu-latest - path: release/linux - - - name: Rename Artifacts - run: | - mv release/windows/juno.exe release/windows/juno-${{steps.version_check.outputs.releaseVersion}}-windows.exe - mv release/macos/juno release/macos/juno-${{steps.version_check.outputs.releaseVersion}}-macos - mv release/linux/juno release/linux/juno-${{steps.version_check.outputs.releaseVersion}}-linux - - name: Publish Release uses: softprops/action-gh-release@v1 with: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index af50206..90fda59 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -3,7 +3,7 @@ on: branches: - master - staging - - develop + - develop name: Continuous integration (PR) @@ -13,7 +13,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: git fetch --all --tags - name: Check Release Version (staging) @@ -32,23 +31,20 @@ jobs: tagFormat: v${version} id: version_check_master build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [windows-latest, macos-latest, ubuntu-latest] - node: - - stable - - lts - fail-fast: false + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v2 - - name: Install dependencies - uses: actions-rs/cargo@v1 + - name: Setup nodejs + uses: actions/setup-node@v1 with: - command: npm ci + node-version: '12.x' + + - name: Install dependencies + run: npm ci - name: Publish to npm - uses: actions-rs/cargo@v1 + uses: actions/setup-node@v1 with: command: npm publish From 45cc8d14277101817d18b46a58280456d81fbe2b Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Thu, 30 Apr 2020 20:29:37 +0530 Subject: [PATCH 05/12] WIP: Assest uploading remains --- .github/workflows/build.yml | 9 ++------- .github/workflows/pr.yml | 6 ++---- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 03441eb..cbb835d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,14 +18,9 @@ jobs: uses: actions/setup-node@v1 with: node-version: '12.x' - - - name: Install dependencies run: npm ci - - - name: Publish to npm - uses: actions/setup-node@v1 - with: - command: npm publish + run: npm test:prod + run: npm build # Publish release on push to master release-master: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 90fda59..3d29667 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -44,7 +44,5 @@ jobs: - name: Install dependencies run: npm ci - - name: Publish to npm - uses: actions/setup-node@v1 - with: - command: npm publish + - name: Run npm test and lint + run: npm run test:prod From d17b1670b97c50c5b0c4963c4088667f6fa9b3cd Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Fri, 1 May 2020 00:07:15 +0530 Subject: [PATCH 06/12] WIP: Upload release asset CI --- .github/workflows/build.yml | 43 ++++++++++++++++++++++++++++++------- .github/workflows/pr.yml | 2 +- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cbb835d..fdfe6af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,9 +18,15 @@ jobs: uses: actions/setup-node@v1 with: node-version: '12.x' + + - name: Install dependencies run: npm ci - run: npm test:prod - run: npm build + + - name: Linting and Test + run: npm run test:prod + + - name: Run Build + run: npm run build # Publish release on push to master release-master: @@ -29,6 +35,7 @@ jobs: needs: build steps: - uses: actions/checkout@v2 + - run: git fetch --all --tags - name: Check Release Version @@ -39,14 +46,24 @@ jobs: id: version_check - name: Publish Release - uses: softprops/action-gh-release@v1 + id: create_release + uses: actions/create-release@latest with: - files: release/**/* - tag_name: ${{steps.version_check.outputs.releaseVersion}} + tag_name: ${{ steps.version_check.outputs.releaseVersion }} + release_name: Juno-node @Linux Release ${{ steps.version_check.outputs.releaseVersion }} prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.version_check.outputs.upload_url }} + asset_path: ./juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}.zip + asset_name: juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}.zip + asset_content_type: application/zip release-staging: if: github.ref == 'refs/heads/staging' @@ -64,11 +81,21 @@ jobs: id: version_check - name: Publish Release - uses: softprops/action-gh-release@v1 + id: create_release + uses: actions/create-release@latest with: - files: release/**/* - tag_name: ${{steps.version_check.outputs.releaseVersion}} + tag_name: ${{ steps.version_check.outputs.releaseVersion }} + release_name: Linux Release ${{ steps.version_check.outputs.releaseVersion }} prerelease: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.version_check.outputs.upload_url }} + asset_path: ./juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}-beta.zip + asset_name: juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}-beta.zip + asset_content_type: application/zip diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3d29667..f49d260 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -44,5 +44,5 @@ jobs: - name: Install dependencies run: npm ci - - name: Run npm test and lint + - name: Linting and tests run: npm run test:prod From 35151c0e897e4daae091a1fc8766e97b00a4430f Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Fri, 1 May 2020 11:31:40 +0530 Subject: [PATCH 07/12] fix: build.yml modified --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdfe6af..5e241f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.version_check.outputs.upload_url }} + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}.zip asset_name: juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}.zip asset_content_type: application/zip @@ -95,7 +95,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.version_check.outputs.upload_url }} + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}-beta.zip asset_name: juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}-beta.zip asset_content_type: application/zip From f228f8ace720d79481c728c4e16eee5eb4c67c77 Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Fri, 1 May 2020 15:38:29 +0530 Subject: [PATCH 08/12] fix: Build Config updated --- .github/workflows/build.yml | 50 +++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e241f9..997b496 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,12 @@ jobs: with: node-version: '12.x' + - name: Check Release Version + uses: thebongy/version-check@v1 + with: + file: package.json + id: version_check + - name: Install dependencies run: npm ci @@ -28,6 +34,15 @@ jobs: - name: Run Build run: npm run build + - name: Create tarball + run: npm pack + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: juno-node@v${{ steps.version_check.outputs.releaseVersion }} + path: ./juno-node-${{ steps.version_check.outputs.releaseVersion }}.tgz + # Publish release on push to master release-master: if: github.ref == 'refs/heads/master' @@ -35,35 +50,39 @@ jobs: needs: build steps: - uses: actions/checkout@v2 - - run: git fetch --all --tags - name: Check Release Version uses: thebongy/version-check@v1 with: file: package.json - tagFormat: v${version} + tagFormat: ${version} id: version_check - name: Publish Release id: create_release uses: actions/create-release@latest with: - tag_name: ${{ steps.version_check.outputs.releaseVersion }} - release_name: Juno-node @Linux Release ${{ steps.version_check.outputs.releaseVersion }} + tag_name: v${{ steps.version_check.outputs.releaseVersion }} + release_name: Juno-node@v${{ steps.version_check.outputs.releaseVersion }} prerelease: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Download Artifact + uses: actions/download-artifact@v2 + with: + name: juno-node@v${{ steps.version_check.outputs.releaseVersion }} + - name: Upload Release Asset uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}.zip - asset_name: juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}.zip - asset_content_type: application/zip + asset_path: juno-node-${{ steps.version_check.outputs.releaseVersion }}.tgz + asset_name: juno-node@v${{ steps.version_check.outputs.releaseVersion }}.tgz + asset_content_type: application/tgz release-staging: if: github.ref == 'refs/heads/staging' @@ -77,15 +96,20 @@ jobs: uses: thebongy/version-check@v1 with: file: package.json - tagFormat: v${version}-beta + tagFormat: ${version} id: version_check + - name: Download Artifact + uses: actions/download-artifact@v2 + with: + name: juno-node@v${{ steps.version_check.outputs.releaseVersion }} + - name: Publish Release id: create_release uses: actions/create-release@latest with: - tag_name: ${{ steps.version_check.outputs.releaseVersion }} - release_name: Linux Release ${{ steps.version_check.outputs.releaseVersion }} + tag_name: v${{ steps.version_check.outputs.releaseVersion }}-beta + release_name: Juno-node@v${{ steps.version_check.outputs.releaseVersion }}-beta prerelease: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -96,6 +120,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}-beta.zip - asset_name: juno-node-linux-${{ steps.version_check.outputs.releaseVersion }}-beta.zip - asset_content_type: application/zip + asset_path: juno-node-${{ steps.version_check.outputs.releaseVersion }}.tgz + asset_name: juno-node@v${{ steps.version_check.outputs.releaseVersion }}-beta.tgz + asset_content_type: application/gzip From 49305034d799855767148660e2dd8485818ed526 Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Fri, 1 May 2020 16:47:37 +0530 Subject: [PATCH 09/12] feat: Updated pr.yml --- .github/workflows/pr.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f49d260..eafcb2d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -36,6 +36,12 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Check Release Version + uses: thebongy/version-check@v1 + with: + file: package.json + id: version_check + - name: Setup nodejs uses: actions/setup-node@v1 with: @@ -46,3 +52,15 @@ jobs: - name: Linting and tests run: npm run test:prod + + - name: Build + run: npm build + + - name: Create tar + run: npm pack + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: juno-node@v${{ steps.version_check.outputs.releaseVersion }}-alpha + path: ./juno-node-${{ steps.version_check.outputs.releaseVersion }}.tgz From 74088fc0c8e1527c42cac2fc3b4d4e604c0679ec Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Fri, 1 May 2020 17:51:50 +0530 Subject: [PATCH 10/12] fix: Race condition handled --- .github/workflows/pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index eafcb2d..29d98ce 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -32,6 +32,7 @@ jobs: id: version_check_master build: runs-on: ubuntu-latest + needs: version-check steps: - uses: actions/checkout@v2 From 3bc1b1dbbb621be96ab05418ae8a8ed9f1ce8616 Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Fri, 1 May 2020 20:39:08 +0530 Subject: [PATCH 11/12] feat: npm publish added --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 997b496..c04dfae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,11 +53,11 @@ jobs: - run: git fetch --all --tags - name: Check Release Version + id: version_check uses: thebongy/version-check@v1 with: file: package.json tagFormat: ${version} - id: version_check - name: Publish Release id: create_release @@ -84,6 +84,11 @@ jobs: asset_name: juno-node@v${{ steps.version_check.outputs.releaseVersion }}.tgz asset_content_type: application/tgz + - name: Publish to npm + run: npm publish juno-node-${{ steps.version_check.outputs.releaseVersion }}.tgz + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + release-staging: if: github.ref == 'refs/heads/staging' runs-on: ubuntu-latest From 1291e4105a71288f63565558a9e5b620b180eba1 Mon Sep 17 00:00:00 2001 From: "Saurav M. H" Date: Fri, 1 May 2020 20:43:06 +0530 Subject: [PATCH 12/12] feat: added beta npm publish --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c04dfae..cfa8b00 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -98,11 +98,11 @@ jobs: - run: git fetch --all --tags - name: Check Release Version + id: version_check uses: thebongy/version-check@v1 with: file: package.json tagFormat: ${version} - id: version_check - name: Download Artifact uses: actions/download-artifact@v2 @@ -128,3 +128,8 @@ jobs: asset_path: juno-node-${{ steps.version_check.outputs.releaseVersion }}.tgz asset_name: juno-node@v${{ steps.version_check.outputs.releaseVersion }}-beta.tgz asset_content_type: application/gzip + + - name: Publish to npm + run: npm publish juno-node-${{ steps.version_check.outputs.releaseVersion }}.tgz --tag beta + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}