mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
ci: use new env syntax
see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files
This commit is contained in:
8
.github/workflows/npm_release.yml
vendored
8
.github/workflows/npm_release.yml
vendored
@ -16,7 +16,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate Version
|
- name: Generate Version
|
||||||
working-directory: packages/core
|
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
|
- name: Bump Version
|
||||||
working-directory: packages/core
|
working-directory: packages/core
|
||||||
@ -31,5 +33,5 @@ jobs:
|
|||||||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
||||||
echo "Publishing @nativescript/core@$NPM_VERSION to NPM..."
|
echo "Publishing @nativescript/core@$NPM_VERSION to NPM with tag $NPM_TAG..."
|
||||||
npm publish nativescript-core-$NPM_VERSION.tgz --tag next --dry-run
|
npm publish nativescript-core-$NPM_VERSION.tgz --tag $NPM_TAG --dry-run
|
||||||
|
Reference in New Issue
Block a user