From 8a973cb1e5ed04f17d9514ade4c9101df32bf001 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Tue, 8 Dec 2020 14:04:29 +0000 Subject: [PATCH 1/3] build also app zip file for quick deploy, fix github release bugs --- .circleci/config.yml | 7 ++++--- npminstall.bat | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 npminstall.bat diff --git a/.circleci/config.yml b/.circleci/config.yml index f3c447a..d684c1e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: - checkout - run: name: Install npm deployment app - command: sudo npm install -g github-release-cli + command: sudo npm install -g github-release-cli @babel/runtime - run: name: Check if this is a new release command: | @@ -30,6 +30,7 @@ jobs: PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[", ]//g') echo "Packaging to ${CIRCLE_PROJECT_REPONAME}_build-sc.zip" zip "${CIRCLE_PROJECT_REPONAME}_build-sc-core.zip" runner.mjs package.json service/* core/**/* core/* + zip "${CIRCLE_PROJECT_REPONAME}_app.zip" runner.mjs package.json service/* core/**/* core/* service/* config.json install.bat npminstall.bat README.md start.bat stop.bat uninstall.bat echo "Creating release '${PACKAGE_VERSION}'" github-release upload \ --commitish $CIRCLE_SHA1 \ @@ -37,9 +38,9 @@ jobs: --owner $CIRCLE_PROJECT_USERNAME \ --repo $CIRCLE_PROJECT_REPONAME \ --tag "v${PACKAGE_VERSION}" \ - --name "v${PACKAGE_VERSION}" \ + --release-name "v${PACKAGE_VERSION}" \ --body "Automatic CircleCI Build of v${PACKAGE_VERSION} from ${CIRCLE_SHA1}: ${COMMIT_MESSAGE}" \ - "${CIRCLE_PROJECT_REPONAME}_build-sc-core.zip" + "${CIRCLE_PROJECT_REPONAME}_build-sc-core.zip" "${CIRCLE_PROJECT_REPONAME}_app.zip" workflows: version: 2 diff --git a/npminstall.bat b/npminstall.bat new file mode 100644 index 0000000..328bd9e --- /dev/null +++ b/npminstall.bat @@ -0,0 +1,2 @@ +npm install +PAUSE \ No newline at end of file From 036a6b6ecaa9ff934152a77df92449396f1c39bf Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Tue, 8 Dec 2020 14:06:33 +0000 Subject: [PATCH 2/3] Fix circleci build --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d684c1e..3d59dd5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,4 +47,4 @@ workflows: build_deploy: jobs: - build: - context: github-thething + context: github-thething \ No newline at end of file From 564cfe4263b4f40657332041a52d650f761aa12a Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Tue, 8 Dec 2020 14:11:42 +0000 Subject: [PATCH 3/3] Package: Increment version and create new build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ea7d094..5d0e9ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "service-core", - "version": "2.0.1", + "version": "2.0.2", "description": "Core boiler plate code to install node server as windows service", "main": "lib.mjs", "scripts": {