From 4d46ab2f38d0913bf30a3848315e0e164565b427 Mon Sep 17 00:00:00 2001 From: hustcer Date: Wed, 4 Oct 2023 16:21:05 +0800 Subject: [PATCH] fix: Fix release and test workflow --- .github/workflows/npm-release.yml | 6 +++--- .github/workflows/test-release.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 792b89c..fe19ab3 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -84,9 +84,9 @@ jobs: - name: Test Nu Install from NPM Registry shell: bash run: | - let tag = ('npm/app/package.json' | open | get distTag) - echo $'Installing Nu@($tag) from npm...' - npm i --location=global $'nushell@($tag)' --registry https://registry.npmjs.org + export NU_TAG=`jq .distTag npm/app/package.json` + echo "Installing Nu@$NU_TAG from npm..." + npm i --location=global "nushell@$NU_TAG" --registry https://registry.npmjs.org echo 'Nu version info:'; nu -c 'version' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-release.yml b/.github/workflows/test-release.yml index 636afbb..076c73b 100644 --- a/.github/workflows/test-release.yml +++ b/.github/workflows/test-release.yml @@ -27,9 +27,9 @@ jobs: - name: Test Nu Install from NPM Registry shell: bash run: | - let tag = ('npm/app/package.json' | open | get distTag) - echo $'Installing Nu@($tag) from npm...' - npm i --location=global $'nushell@($tag)' --registry https://registry.npmjs.org + export NU_TAG=`jq .distTag npm/app/package.json` + echo "Installing Nu@$NU_TAG from npm..." + npm i --location=global "nushell@$NU_TAG" --registry https://registry.npmjs.org echo 'Nu version info:'; nu -c 'version' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}