mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
ci: enable publishing & allow skipping ci [skip ci]
This commit is contained in:
12
.github/workflows/npm_release_tns_core.yml
vendored
12
.github/workflows/npm_release_tns_core.yml
vendored
@@ -26,6 +26,12 @@ env:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: |
|
||||
!(
|
||||
contains(github.event.head_commit.message, 'skip ci') ||
|
||||
contains(github.event.head_commit.message, 'ci skip') ||
|
||||
contains(github.event.head_commit.message, 'no ci')
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -78,10 +84,10 @@ jobs:
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||
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 with tag $NPM_TAG..."
|
||||
#npm publish nativescript-core-$NPM_VERSION.tgz --tag $NPM_TAG
|
||||
npm publish nativescript-core-$NPM_VERSION.tgz --tag $NPM_TAG
|
||||
|
||||
echo "Publishing tns-core-modules@$NPM_VERSION to NPM with tag $NPM_TAG_TNS..."
|
||||
#npm publish tns-core-modules-$NPM_VERSION.tgz --tag $NPM_TAG_TNS
|
||||
npm publish tns-core-modules-$NPM_VERSION.tgz --tag $NPM_TAG_TNS
|
||||
|
||||
Reference in New Issue
Block a user