From ece2b9f397ffd18d74f90c38e17e74c920ca8548 Mon Sep 17 00:00:00 2001 From: kridai Date: Mon, 15 Nov 2021 17:05:25 +0530 Subject: [PATCH] fix: updating release steps to fetch latest dependencies (#332) --- .github/workflows/cli-test.yml | 2 +- .github/workflows/oclif-release.yml | 3 ++- .github/workflows/platform-executables.yml | 2 +- .github/workflows/release.yml | 10 +++++----- .github/workflows/rpmbuild.yml | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cli-test.yml b/.github/workflows/cli-test.yml index 186976eb9..efe3e015a 100644 --- a/.github/workflows/cli-test.yml +++ b/.github/workflows/cli-test.yml @@ -17,7 +17,7 @@ jobs: with: # Disabling shallow clone is recommended for improving relevancy of reporting fetch-depth: 0 - - run: npm install + - run: make install - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: diff --git a/.github/workflows/oclif-release.yml b/.github/workflows/oclif-release.yml index 8a4603297..f59b3443b 100644 --- a/.github/workflows/oclif-release.yml +++ b/.github/workflows/oclif-release.yml @@ -31,7 +31,8 @@ jobs: steps: - uses: actions/checkout@v2 - run: | - npm install + make install + npm list @twilio/cli-core if [ "$RUNNER_OS" == "macOS" ]; then brew install makensis fi diff --git a/.github/workflows/platform-executables.yml b/.github/workflows/platform-executables.yml index bc0bfdf07..b6db9e21c 100644 --- a/.github/workflows/platform-executables.yml +++ b/.github/workflows/platform-executables.yml @@ -41,7 +41,7 @@ jobs: steps: - uses: actions/checkout@v2 - run: | - npm install + make install if [ "$RUNNER_OS" == "macOS" ]; then brew install makensis fi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b935bdf7..98b3a3270 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout cli repo uses: actions/checkout@v2 - - run: npm install + - run: make install - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: @@ -54,7 +54,7 @@ jobs: - name: Run git and npm update run: | git pull - npm install + make install - name: Semantic Release runs id: semantic-release run: npx semantic-release -t \${version} @@ -77,7 +77,7 @@ jobs: uses: actions/checkout@v2 - run: | git pull - npm install + make install - name: Extract branch name id: extract_branch run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" @@ -98,7 +98,7 @@ jobs: uses: actions/checkout@v2 - run: | git pull - npm install + make install - name: Extract branch name id: extract_branch run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" @@ -118,7 +118,7 @@ jobs: uses: actions/checkout@v2 - run: | git pull - npm install + make install - name: Extract branch name id: extract_branch run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index 3545c376b..a9d918208 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -23,7 +23,7 @@ jobs: - name: generate linux tarball run: | - npm cache clear & npm install + make install npm install -g @oclif/dev-cli oclif-dev pack --targets=linux-x64