From 9b00180b6a79c8fbd23f271d33af85bf0e0c9908 Mon Sep 17 00:00:00 2001 From: Gregg Rapoza Date: Sun, 13 Jan 2019 23:20:30 -0500 Subject: [PATCH 1/2] Updates package info and appveyor related fields --- appveyor.yml | 13 ++++++++----- package.json | 7 +++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index c86d63f1..668490a6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,11 +1,15 @@ ---- +--- version: '1.0.{build}' image: Ubuntu - + init: - sh: git config --global core.autocrlf true - sh: nvm use 8 +install: + - ps: $env:package_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version + - ps: Update-AppveyorBuild -Version "$env:package_version-$env:APPVEYOR_BUILD_NUMBER" + before_build: - sh: yarn @@ -14,7 +18,6 @@ build_script: after_build: # Copy anything that goes into the final package into '/package' - - sh: ls - sh: mkdir -p package && cp dist/*.js dist/*.css package.json LICENSE README.md package # Zip up the package files, along with the .map files for debugging - sh: 7z a -tzip artifacts.zip ./package/* ./dist/*.map @@ -27,9 +30,9 @@ artifacts: deploy_script: - ps: | - if ($env:APPVEYOR_REPO_TAG -eq "true") + if ($env:APPVEYOR_REPO_TAG -eq "true") { #TODO Remove --dry-run when we're good to go here. - npm publish package/ --tag {version} --access public --dry-run + npm publish package/ --access public --dry-run } ... \ No newline at end of file diff --git a/package.json b/package.json index 94ac2444..d3765d4c 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,13 @@ "url": "https://github.com/grapoza/vue-tree", "type": "git" }, + "bugs": "https://github.com/grapoza/vue-tree/issues", + "keywords": [ + "vue", + "vuejs", + "tree", + "treeview" + ], "scripts": { "build": "./node_modules/.bin/vue-cli-service build --target lib --name vue-tree src/components/TreeView.vue", "watch": "./node_modules/.bin/vue-cli-service build --target lib --name vue-tree src/components/TreeView.vue --watch", From 86fbaed31a694686bf386742babe2c3669c753c0 Mon Sep 17 00:00:00 2001 From: Gregg Rapoza Date: Sun, 13 Jan 2019 23:51:13 -0500 Subject: [PATCH 2/2] Adds npm auth --- appveyor.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 668490a6..28244a57 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,7 +32,8 @@ deploy_script: - ps: | if ($env:APPVEYOR_REPO_TAG -eq "true") { - #TODO Remove --dry-run when we're good to go here. - npm publish package/ --access public --dry-run + # npm_auth_token defined in the appveyor project on the site. https://www.appveyor.com/docs/lang/nodejs-iojs/#authenticating-npm-for-publishing-packages + '"//registry.npmjs.org/:_authToken=$env:npm_auth_token`n" | out-file "$env:userprofile\.npmrc" -Encoding ASCII' + npm publish package/ --access public } ... \ No newline at end of file