From a32c99b1249b2496669f47938d605c76e362c933 Mon Sep 17 00:00:00 2001 From: Igor Randjelovic Date: Fri, 13 Nov 2020 11:55:18 +0100 Subject: [PATCH] ci: use new env syntax see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files --- .github/workflows/npm_release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm_release.yml b/.github/workflows/npm_release.yml index ddc199d45..9560bf957 100644 --- a/.github/workflows/npm_release.yml +++ b/.github/workflows/npm_release.yml @@ -16,7 +16,9 @@ jobs: - name: Generate Version working-directory: packages/core - run: echo ::set-env name=NPM_VERSION::$(node -e "console.log(require('./package.json').version);")-$(date +"%m-%d-%Y")-$GITHUB_RUN_ID + run: | + echo NPM_TAG=next >> $GITHUB_ENV + echo NPM_VERSION=$(node -e "console.log(require('./package.json').version);")-$NPM_TAG-$(date +"%m-%d-%Y")-$GITHUB_RUN_ID >> $GITHUB_ENV - name: Bump Version working-directory: packages/core @@ -31,5 +33,5 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} run: | echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc - echo "Publishing @nativescript/core@$NPM_VERSION to NPM..." - npm publish nativescript-core-$NPM_VERSION.tgz --tag next --dry-run + echo "Publishing @nativescript/core@$NPM_VERSION to NPM with tag $NPM_TAG..." + npm publish nativescript-core-$NPM_VERSION.tgz --tag $NPM_TAG --dry-run