From 0d6b6a05c01e2bdc1622ce7415ae6664d31d2a4c Mon Sep 17 00:00:00 2001 From: tabris87 Date: Thu, 29 Feb 2024 07:42:00 +0100 Subject: [PATCH 01/39] chore(actions): created action for automatic versioning and release --- .github/workflows/node.js.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..c70932a --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,42 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: node ./utils/deployBuild.js --pre + - run: npm run changelog + - name: Create Pre Release + id: create_pre_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Automatic generated pre-release with the latest features and bugfixes + draft: false + prerelease: true From f5f5a47ae669ab9ffff1d8f8941c045cbda5a79d Mon Sep 17 00:00:00 2001 From: tabris87 Date: Thu, 29 Feb 2024 07:43:51 +0100 Subject: [PATCH 02/39] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c70932a..a10dec4 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: From 4305732771be75f0ffd743ca7081c970eeff32ad Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 08:22:44 +0100 Subject: [PATCH 03/39] chore(github-action): changed run command to the deployBuild script --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a10dec4..ba38a09 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,7 +26,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: node ./utils/deployBuild.js --pre + - run: npm run deployBuild -- --pre - run: npm run changelog - name: Create Pre Release id: create_pre_release From cb6da8b25facff9610b3b63855570f68f9619cac Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 08:25:20 +0100 Subject: [PATCH 04/39] fix(github-action): added npm install step --- .github/workflows/node.js.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index ba38a09..4d744df 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -26,6 +26,7 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: 'npm' + - run: npm install - run: npm run deployBuild -- --pre - run: npm run changelog - name: Create Pre Release From 4bd75997fc6972ceccc182c35e9dd1b17ab02397 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 08:46:47 +0100 Subject: [PATCH 05/39] chore(github-action): try to fix file not found error --- .github/workflows/node.js.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4d744df..da7c6db 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,6 +28,7 @@ jobs: cache: 'npm' - run: npm install - run: npm run deployBuild -- --pre + working-directory: ${{ github.workspace }} - run: npm run changelog - name: Create Pre Release id: create_pre_release From 8293bf306d3516aa2457ba16a6af29105ecf0360 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 09:33:12 +0100 Subject: [PATCH 06/39] chore(github-action): try to fix file not found error --- .github/workflows/node.js.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index da7c6db..39968b0 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -14,19 +14,14 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node-version }} + node-version: '20.x' cache: 'npm' - - run: npm install + - run: npm ci - run: npm run deployBuild -- --pre working-directory: ${{ github.workspace }} - run: npm run changelog From e682253ee93086557e6e5a86936c53b52054e7d4 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 12:27:53 +0100 Subject: [PATCH 07/39] chore(deploy-script): replaced fixed strings with path variables --- package-lock.json | 44 --------------------------------------- package.json | 1 - utils/deployBuild.js | 49 +++++++++++++++++++++++--------------------- 3 files changed, 26 insertions(+), 68 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c07cac..b14745c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "@commitlint/prompt-cli": "^19.0.3", "@openui5/types": "^1.120.6", "@types/chrome": "^0.0.260", - "@types/jszip": "^3.4.1", "@types/node": "^20.11.20", "@typescript-eslint/eslint-plugin": "^6.20.0", "@typescript-eslint/parser": "^6.20.0", @@ -4235,16 +4234,6 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "dev": true }, - "node_modules/@types/jszip": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/@types/jszip/-/jszip-3.4.1.tgz", - "integrity": "sha512-TezXjmf3lj+zQ651r6hPqvSScqBLvyPI9FxdXBqpEwBijNGQ2NXpaFW/7joGzveYkKQUil7iiDHLo6LV71Pc0A==", - "deprecated": "This is a stub types definition. jszip provides its own type definitions, so you do not need this installed.", - "dev": true, - "dependencies": { - "jszip": "*" - } - }, "node_modules/@types/linkify-it": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.5.tgz", @@ -18456,12 +18445,6 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/immediate": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", - "dev": true - }, "node_modules/import-fresh": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", @@ -19230,18 +19213,6 @@ "node": "*" } }, - "node_modules/jszip": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", - "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", - "dev": true, - "dependencies": { - "lie": "~3.3.0", - "pako": "~1.0.2", - "readable-stream": "~2.3.6", - "setimmediate": "^1.0.5" - } - }, "node_modules/karma": { "version": "6.4.2", "resolved": "https://registry.npmjs.org/karma/-/karma-6.4.2.tgz", @@ -19523,15 +19494,6 @@ "node": ">= 0.8.0" } }, - "node_modules/lie": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", - "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", - "dev": true, - "dependencies": { - "immediate": "~3.0.5" - } - }, "node_modules/lighthouse-logger": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-2.0.1.tgz", @@ -21259,12 +21221,6 @@ "node": "^16.14.0 || >=18.0.0" } }, - "node_modules/pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true - }, "node_modules/param-case": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", diff --git a/package.json b/package.json index 9742929..92af79e 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "@commitlint/prompt-cli": "^19.0.3", "@openui5/types": "^1.120.6", "@types/chrome": "^0.0.260", - "@types/jszip": "^3.4.1", "@types/node": "^20.11.20", "@typescript-eslint/eslint-plugin": "^6.20.0", "@typescript-eslint/parser": "^6.20.0", diff --git a/utils/deployBuild.js b/utils/deployBuild.js index 472e47f..29ce215 100644 --- a/utils/deployBuild.js +++ b/utils/deployBuild.js @@ -1,10 +1,13 @@ "use strict"; const fs = require("fs"); const glob = require("glob"); +const path = require("path"); const { zip } = require('zip-a-folder'); const { version } = require('../package.json'); const { argv } = require('process'); +const WORK_DIR = process.cwd(); + const CONFIG = { DEPLOY_BUILD: "deploySelection", PROJECT_FOLDER: "webapp", @@ -78,7 +81,7 @@ const CONFIG = { function cleanup() { console.log("Remove old deploy build"); - fs.rmSync(CONFIG.DEPLOY_BUILD, { recursive: true, force: true }); + fs.rmSync(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD), { recursive: true, force: true }); } async function buildExtension(projectPath, destinationPath) { @@ -103,44 +106,44 @@ async function _removeFiles(aFilesToRemoveGlobs) { function cleanupTheBuildStuff() { console.log('Removing unnecessary files for recursive copy'); - return _removeFiles(CONFIG.UNUSEDFILE_ENDINGS.map(ending => `${CONFIG.BUILD_FOLDER}${ending}`)); + return _removeFiles(CONFIG.UNUSEDFILE_ENDINGS.map(ending => path.join(WORK_DIR, CONFIG.BUILD_FOLDER, ending))); } async function buildFolderStructure() { console.log("Recreate deploy build"); // create necessary subfolders console.log("Create folderstructure"); - await fs.promises.mkdir(CONFIG.DEPLOY_BUILD); - await fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources`); - await fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap`); - await fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/ui`); + await fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD)); + await fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, '/resources')); + await fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, '/resources/sap')); + await fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, '/resources/sap/ui')); await Promise.all([ - fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/m`), - fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/uxap`), - fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/f`) + fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, "/resources/sap/m")), + fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, "/resources/sap/uxap")), + fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, "/resources/sap/f")) ]); await Promise.all([ - fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/ui/core`).then(() => { + fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, "/resources/sap/ui/core")).then(() => { return Promise.all([ - fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/ui/core/date`), - fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/ui/core/cldr`) + fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, "/resources/sap/ui/core/date")), + fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, "/resources/sap/ui/core/cldr")) ]) }), - fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/ui/layout`), - fs.promises.mkdir(`./${CONFIG.DEPLOY_BUILD}/resources/sap/ui/unified`) + fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, "/resources/sap/ui/layout")), + fs.promises.mkdir(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, "/resources/sap/ui/unified")) ]); } function recursiveFolderCopy() { //recursive copy necessary folder console.log("Copy folders"); - return Promise.all(CONFIG.RECURSIVE_FOLDERS.map(rc => fs.promises.cp(`./${CONFIG.BUILD_FOLDER}/${rc}`, `./${CONFIG.DEPLOY_BUILD}/${rc}`, { recursive: true }))); + return Promise.all(CONFIG.RECURSIVE_FOLDERS.map(rc => fs.promises.cp(path.join(WORK_DIR, CONFIG.BUILD_FOLDER, rc), path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, rc), { recursive: true }))); } function selectiveFileCopy() { //copy single files console.log("copy files"); - return Promise.all(CONFIG.FILES_TO_COPY.map(rc => fs.promises.cp(`./${CONFIG.BUILD_FOLDER}/${rc}`, `./${CONFIG.DEPLOY_BUILD}/${rc}`))); + return Promise.all(CONFIG.FILES_TO_COPY.map(rc => fs.promises.cp(path.join(WORK_DIR, CONFIG.BUILD_FOLDER, rc), path.join(WORK_DIR, CONFIG.DEPLOY_BUILD, rc)))); } function createDeployZip(bPreVersion) { @@ -149,10 +152,10 @@ function createDeployZip(bPreVersion) { if (bPreVersion) { suffix = 'nightly_' } - if (!fs.existsSync(CONFIG.DEPLOY_VERSIONS)) { - fs.mkdirSync(`${CONFIG.DEPLOY_VERSIONS}`); + if (!fs.existsSync(path.join(WORK_DIR, CONFIG.DEPLOY_VERSIONS))) { + fs.mkdirSync(path.join(WORK_DIR, CONFIG.DEPLOY_VERSIONS)); } - return zip(`${CONFIG.DEPLOY_BUILD}`, `${CONFIG.DEPLOY_VERSIONS}/journey_recorder_${suffix}${version.replace(/\./gm, '-')}.zip`); + return zip(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD), path.join(WORK_DIR, CONFIG.DEPLOY_VERSIONS, `journey_recorder_${suffix}${version.replace(/\./gm, '-')}.zip`)); } function _byteSize(iSize) { @@ -183,21 +186,21 @@ async function getDirSize(sDirName) { (async () => { cleanup(); - await buildExtension(CONFIG.PROJECT_FOLDER, CONFIG.BUILD_FOLDER); + await buildExtension(path.join(WORK_DIR, CONFIG.PROJECT_FOLDER), path.join(WORK_DIR, CONFIG.BUILD_FOLDER)); if (argv.includes('--size')) { - console.log('Build-Size, ui5 tooling: ', (await getDirSize(CONFIG.BUILD_FOLDER))); + console.log('Build-Size, ui5 tooling: ', (await getDirSize(path.join(WORK_DIR, CONFIG.BUILD_FOLDER)))); } await cleanupTheBuildStuff(); if (argv.includes('--size')) { - console.log('Build-Size, cleanup: ', (await getDirSize(CONFIG.BUILD_FOLDER))); + console.log('Build-Size, cleanup: ', (await getDirSize(path.join(WORK_DIR, CONFIG.BUILD_FOLDER)))); } await buildFolderStructure(); await recursiveFolderCopy(); await selectiveFileCopy(); if (argv.includes('--size')) { - console.log('Build-Size, deploy: ', (await getDirSize(CONFIG.DEPLOY_BUILD))); + console.log('Build-Size, deploy: ', (await getDirSize(path.join(WORK_DIR, CONFIG.DEPLOY_BUILD)))); } await createDeployZip(argv.includes('--pre')); From 1edf195f116a040bd38c4c28a529c0d416b224ae Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 12:33:49 +0100 Subject: [PATCH 08/39] chore(deploy-script): fixed lower case letters, for unix environments --- utils/deployBuild.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/deployBuild.js b/utils/deployBuild.js index 29ce215..30f83ff 100644 --- a/utils/deployBuild.js +++ b/utils/deployBuild.js @@ -37,8 +37,10 @@ const CONFIG = { "favicon.ico", "manifest.json", "resources/sap-ui-custom.js", - "resources/sap/m/Checkbox.js", - "resources/sap/m/Vbox.js", + "resources/sap/m/CheckBox.js", + "resources/sap/m/CheckBoxRenderer.js", + "resources/sap/m/VBox.js", + "resources/sap/m/VBoxRenderer.js", "resources/sap/ui/core/messagebundle.properties", "resources/sap/ui/core/messagebundle_de.properties", "resources/sap/ui/core/messagebundle_en_GB.properties", From 3826448d8be556529d9d0ac7f8935c95bde77ff6 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 12:39:19 +0100 Subject: [PATCH 09/39] chore(github-action): added user.name and email to workflow --- .github/workflows/node.js.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 39968b0..b61e3c5 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -22,9 +22,13 @@ jobs: node-version: '20.x' cache: 'npm' - run: npm ci + - name: Configure committer + run: | + git config user.name "Github Actions Bot" + git config user.email "<>" + - run: npm run changelog - run: npm run deployBuild -- --pre working-directory: ${{ github.workspace }} - - run: npm run changelog - name: Create Pre Release id: create_pre_release uses: actions/create-release@v1 From c2d1166cd674a04848dfaf06ca2447658fccf98a Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 12:58:13 +0100 Subject: [PATCH 10/39] chore(github-action): removed pull-requests as they not build releases --- .github/workflows/node.js.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b61e3c5..f56a8f0 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -6,8 +6,6 @@ name: Node.js CI on: push: branches: [ "develop" ] - pull_request: - branches: [ "develop" ] jobs: build: From 43b6c0dd9399d617a3cdf573dd75c3148d15ec0c Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 13:23:13 +0100 Subject: [PATCH 11/39] chore(github-action): fixed a better version tagging --- .github/workflows/node.js.yml | 59 ++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 28 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f56a8f0..793467c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,37 +5,40 @@ name: Node.js CI on: push: - branches: [ "develop" ] + branches: ["develop"] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: '20.x' - cache: 'npm' - - run: npm ci - - name: Configure committer - run: | - git config user.name "Github Actions Bot" - git config user.email "<>" - - run: npm run changelog - - run: npm run deployBuild -- --pre - working-directory: ${{ github.workspace }} - - name: Create Pre Release - id: create_pre_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - Automatic generated pre-release with the latest features and bugfixes - draft: false - prerelease: true + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: "20.x" + cache: "npm" + - run: npm ci + - name: Configure committer + run: | + git config user.name "Github Actions Bot" + git config user.email "<>" + - run: npm run changelog + - run: npm run deployBuild -- --pre + working-directory: ${{ github.workspace }} + - name: Set release names + id: set_names + run: | + echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV" + - name: Create Pre Release + id: create_pre_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ version }} + release_name: Pre-Release ${{ version }} + body: | + Automatic generated pre-release with the latest features and bugfixes + draft: false + prerelease: true From e22554c7cad7af41f49567120829c6c9e9c18b58 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 13:32:43 +0100 Subject: [PATCH 12/39] chore(github-action): get auto pre-release working --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 793467c..80c6fde 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -36,8 +36,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{ version }} - release_name: Pre-Release ${{ version }} + tag_name: $version + release_name: Pre-Release $version body: | Automatic generated pre-release with the latest features and bugfixes draft: false From 6ecc0c14001c728eb6d17137c92ff1db1d96e8d1 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 13:41:20 +0100 Subject: [PATCH 13/39] chore(github-action): get auto pre-release working --- .github/workflows/node.js.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 80c6fde..fcbf7cc 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -36,9 +36,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: $version - release_name: Pre-Release $version + tag_name: ${{version}} + release_name: Pre-Release ${{version}} body: | Automatic generated pre-release with the latest features and bugfixes draft: false prerelease: true + path: deployments/journey_recorder_nightly_${{version}}.zip From acaa4d72c1cf7188e545b13fd749d24d7f8c0e57 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 13:54:04 +0100 Subject: [PATCH 14/39] chore(github-action): get auto pre-release working --- .../workflows/check_version_readout.js.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/check_version_readout.js.yml diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml new file mode 100644 index 0000000..ec3e48d --- /dev/null +++ b/.github/workflows/check_version_readout.js.yml @@ -0,0 +1,28 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + pull-requests: + branches: ["develop"] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: "20.x" + cache: "npm" + - name: Set release version + id: set_version + run: | + echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV" + - name: Read release version + id: read_version + run: | + printf '%s\n' "$version" # This will output 'yellow' From a54e5090770b04a45ab261d1168ad446b45ad8ae Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 13:57:49 +0100 Subject: [PATCH 15/39] chore(github-action): get auto pre-release working --- .github/workflows/check_version_readout.js.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml index ec3e48d..18915a8 100644 --- a/.github/workflows/check_version_readout.js.yml +++ b/.github/workflows/check_version_readout.js.yml @@ -5,7 +5,9 @@ name: Node.js CI on: pull-requests: - branches: ["develop"] + types: [edited, opened] + branches: + - 'develop' jobs: build: From 63e22f44c57ea51ebccf00d5f6afbc89fddb7753 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 13:58:43 +0100 Subject: [PATCH 16/39] chore(github-action): get auto pre-release working --- .github/workflows/check_version_readout.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml index 18915a8..749a3e7 100644 --- a/.github/workflows/check_version_readout.js.yml +++ b/.github/workflows/check_version_readout.js.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Node.js CI +name: Check Version on: pull-requests: From ea82f645839b973930863c7679c922184295c3ec Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 14:00:24 +0100 Subject: [PATCH 17/39] chore(github-action): get auto pre-release working --- .github/workflows/check_version_readout.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml index 749a3e7..d21a3a2 100644 --- a/.github/workflows/check_version_readout.js.yml +++ b/.github/workflows/check_version_readout.js.yml @@ -4,7 +4,7 @@ name: Check Version on: - pull-requests: + pull-request: types: [edited, opened] branches: - 'develop' From 56b463fb421974bb65ed39b10bd681b4fc16403b Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 14:02:24 +0100 Subject: [PATCH 18/39] chore(github-action): get auto pre-release working --- .github/workflows/check_version_readout.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml index d21a3a2..4ff40c0 100644 --- a/.github/workflows/check_version_readout.js.yml +++ b/.github/workflows/check_version_readout.js.yml @@ -4,7 +4,7 @@ name: Check Version on: - pull-request: + pull_request: types: [edited, opened] branches: - 'develop' From 021505204e35a78975271a81bde4d2d7c08ea6ee Mon Sep 17 00:00:00 2001 From: tabris87 Date: Thu, 29 Feb 2024 14:04:34 +0100 Subject: [PATCH 19/39] Update check_version_readout.js.yml --- .github/workflows/check_version_readout.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml index 4ff40c0..7a82ff7 100644 --- a/.github/workflows/check_version_readout.js.yml +++ b/.github/workflows/check_version_readout.js.yml @@ -2,7 +2,7 @@ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs name: Check Version - + on: pull_request: types: [edited, opened] From a9d936388ee2dbb9b8e13859b892d8ca52ee9ad2 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 14:05:54 +0100 Subject: [PATCH 20/39] chore(github-action): get auto pre-release working --- .github/workflows/check_version_readout.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml index 4ff40c0..dda25d7 100644 --- a/.github/workflows/check_version_readout.js.yml +++ b/.github/workflows/check_version_readout.js.yml @@ -20,7 +20,7 @@ jobs: with: node-version: "20.x" cache: "npm" - - name: Set release version + - name: Set release version id: set_version run: | echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV" From ff80142b282f852d16e753884ccd5d7726315f17 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 14:15:21 +0100 Subject: [PATCH 21/39] chore(github-action): get auto pre-release working --- .github/workflows/check_version_readout.js.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml index ca9a50b..253471f 100644 --- a/.github/workflows/check_version_readout.js.yml +++ b/.github/workflows/check_version_readout.js.yml @@ -2,12 +2,12 @@ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs name: Check Version - + on: pull_request: - types: [edited, opened] - branches: - - 'develop' + branches: + - "develop" + workflow_dispatch: jobs: build: @@ -20,7 +20,7 @@ jobs: with: node-version: "20.x" cache: "npm" - - name: Set release version + - name: Set release version id: set_version run: | echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV" From 6017855b29e2cfa0b89943f2baa1098ebd85a605 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 14:20:33 +0100 Subject: [PATCH 22/39] chore(github-action): get auto pre-release working --- .github/workflows/check_version_readout.js.yml | 2 +- .github/workflows/node.js.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_version_readout.js.yml b/.github/workflows/check_version_readout.js.yml index 253471f..49bcb5d 100644 --- a/.github/workflows/check_version_readout.js.yml +++ b/.github/workflows/check_version_readout.js.yml @@ -27,4 +27,4 @@ jobs: - name: Read release version id: read_version run: | - printf '%s\n' "$version" # This will output 'yellow' + echo "$version" diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index fcbf7cc..6a865f1 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -6,6 +6,7 @@ name: Node.js CI on: push: branches: ["develop"] + workflow_dispatch: jobs: build: From cf42c164ec00a835a2a9dfec3f05d5b3520d3d89 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Thu, 29 Feb 2024 14:24:17 +0100 Subject: [PATCH 23/39] chore(github-action): get auto pre-release working --- .github/workflows/node.js.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6a865f1..7c16424 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -37,10 +37,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{version}} - release_name: Pre-Release ${{version}} + tag_name: "$version" + release_name: Pre-Release "$version" body: | Automatic generated pre-release with the latest features and bugfixes draft: false prerelease: true - path: deployments/journey_recorder_nightly_${{version}}.zip + path: deployments/journey_recorder_nightly_"$version".zip From 81cf938e131627cff7e42619564388e10b001d65 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Fri, 1 Mar 2024 06:56:46 +0100 Subject: [PATCH 24/39] chore(github-action): for testing added pull-request to pre-release build script --- .github/workflows/node.js.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7c16424..c6204cd 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,11 +1,13 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Node.js CI +name: Create Pre Release on: push: branches: ["develop"] + pull_request: + branches: ["develop"] workflow_dispatch: jobs: From 9aa68d5cfca0e4c14df62a84d6b5506a7fd6f268 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Fri, 1 Mar 2024 07:09:17 +0100 Subject: [PATCH 25/39] chore(github-action): try to get the version right --- .github/workflows/node.js.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index c6204cd..107c71f 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Create Pre Release +name: Create Nightly Release on: push: @@ -32,17 +32,17 @@ jobs: - name: Set release names id: set_names run: | - echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV" + echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" - name: Create Pre Release id: create_pre_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: "$version" - release_name: Pre-Release "$version" + tag_name: format('{0}_nightly', $version) + release_name: format('{0} {1}', Nightly-Release, $version) body: | - Automatic generated pre-release with the latest features and bugfixes + Automatic generated nightly release with the latest features and bugfixes draft: false prerelease: true - path: deployments/journey_recorder_nightly_"$version".zip + path: format('deployments/journey_recorder_nightly_{0}.zip', $version) From 25993a61ee1f2fdbd1c281a4127d43efa5a7c659 Mon Sep 17 00:00:00 2001 From: Adrian Marten Date: Fri, 1 Mar 2024 07:22:07 +0100 Subject: [PATCH 26/39] chore(github-action): try getting artifact upload correct --- .github/workflows/node.js.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 107c71f..77b6bb6 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -33,8 +33,8 @@ jobs: id: set_names run: | echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" - - name: Create Pre Release - id: create_pre_release + - name: Create Release + id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token @@ -45,4 +45,13 @@ jobs: Automatic generated nightly release with the latest features and bugfixes draft: false prerelease: true - path: format('deployments/journey_recorder_nightly_{0}.zip', $version) + - name: Upload release artifact + id: upload_release_artifact + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: format('deployments/journey_recorder_nightly_{0}.zip', $version) + asset_name: format('journey_recorder_nightly_{0}.zip', $version) + asset_content_type: application/zip From 9ffd95ee39eb502ddeefea4fc7c0c36e8734fab4 Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 07:26:46 +0100 Subject: [PATCH 27/39] Update node.js.yml --- .github/workflows/node.js.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 77b6bb6..7bf34fa 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -32,15 +32,15 @@ jobs: - name: Set release names id: set_names run: | - echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" + echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: format('{0}_nightly', $version) - release_name: format('{0} {1}', Nightly-Release, $version) + tag_name: ${{ env.VERSION }}_nightly + release_name: Nightly-Release ${{ env.version }} body: | Automatic generated nightly release with the latest features and bugfixes draft: false @@ -52,6 +52,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: format('deployments/journey_recorder_nightly_{0}.zip', $version) - asset_name: format('journey_recorder_nightly_{0}.zip', $version) + asset_path: format('deployments/journey_recorder_nightly_{0}.zip', $VERSION) + asset_name: format('journey_recorder_nightly_{0}.zip', $VERSION) asset_content_type: application/zip From b2dfd6cf52e65d0d37f79607ffa737ce1504fe24 Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 07:32:34 +0100 Subject: [PATCH 28/39] Update node.js.yml --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7bf34fa..b099d43 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -52,6 +52,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: format('deployments/journey_recorder_nightly_{0}.zip', $VERSION) - asset_name: format('journey_recorder_nightly_{0}.zip', $VERSION) + asset_path: ./deployments/journey_recorder_nightly_${{ env.VERSION }}.zip + asset_name: journey_recorder_nightly_${{ env.VERSION }}.zip asset_content_type: application/zip From 6a58fb9b5db3de7e11b91fb34fa08c8f9919d75d Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 08:09:32 +0100 Subject: [PATCH 29/39] Update node.js.yml --- .github/workflows/node.js.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b099d43..b990aca 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -33,6 +33,7 @@ jobs: id: set_names run: | echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" + echo "FILE_VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4 | sed "s/\./\-/g")" >> "$GITHUB_ENV" - name: Create Release id: create_release uses: actions/create-release@v1 @@ -52,6 +53,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./deployments/journey_recorder_nightly_${{ env.VERSION }}.zip - asset_name: journey_recorder_nightly_${{ env.VERSION }}.zip + asset_path: ./deployments/journey_recorder_nightly_${{ env.FILE_VERSION }}.zip + asset_name: journey_recorder_nightly_${{ env.FILE_VERSION }}.zip asset_content_type: application/zip From 3cdd6a6ed9f0c4e8fef6abffae5dc9cabe24b94d Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 08:26:42 +0100 Subject: [PATCH 30/39] Update node.js.yml --- .github/workflows/node.js.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b990aca..d00109a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -8,12 +8,9 @@ on: branches: ["develop"] pull_request: branches: ["develop"] - workflow_dispatch: - jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} @@ -21,27 +18,30 @@ jobs: with: node-version: "20.x" cache: "npm" - - run: npm ci + - name: Install dependencies + run: npm ci - name: Configure committer run: | - git config user.name "Github Actions Bot" - git config user.email "<>" - - run: npm run changelog - - run: npm run deployBuild -- --pre + git config user.name "UI5 journey recorder bot" + git config user.email "ui5-journey-recorder-bot@users.noreply.github.com" + - name: Create changelog and increase version + run: npm run changelog + - name: Build the extension for deploy + run: npm run deployBuild -- --pre working-directory: ${{ github.workspace }} - - name: Set release names - id: set_names + - name: Extract versions + id: version_extract run: | echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" echo "FILE_VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4 | sed "s/\./\-/g")" >> "$GITHUB_ENV" - - name: Create Release + - name: Create Github Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: tag_name: ${{ env.VERSION }}_nightly - release_name: Nightly-Release ${{ env.version }} + release_name: Nightly-Release $env.version body: | Automatic generated nightly release with the latest features and bugfixes draft: false From fd9e3577defe18be8b7eedc5d64570894eb1be3e Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 08:38:16 +0100 Subject: [PATCH 31/39] chore: update node.js.yml Added some more conditionals and filters to prevent unnecessary releases --- .github/workflows/node.js.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index d00109a..6a0782b 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,11 +5,15 @@ name: Create Nightly Release on: push: - branches: ["develop"] + branches: + - develop + paths: + - 'webapp/**' pull_request: branches: ["develop"] jobs: - build: + build-and-release: + if: "!startsWith(github.event.head_commit.message, 'chore') && !startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'ci')" runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -34,6 +38,8 @@ jobs: run: | echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" echo "FILE_VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4 | sed "s/\./\-/g")" >> "$GITHUB_ENV" + - name: Push version and changlog + run: git push --origin develop - name: Create Github Release id: create_release uses: actions/create-release@v1 From 9f0b05a2451c34ef470570d3636c6529e37a8ac1 Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 08:40:31 +0100 Subject: [PATCH 32/39] chore: update node.js.yml fixed typo --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 6a0782b..24e5ed8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -39,7 +39,7 @@ jobs: echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" echo "FILE_VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4 | sed "s/\./\-/g")" >> "$GITHUB_ENV" - name: Push version and changlog - run: git push --origin develop + run: git push origin develop - name: Create Github Release id: create_release uses: actions/create-release@v1 From c023059007b20001008c98e1080c0d028daebd86 Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 08:44:00 +0100 Subject: [PATCH 33/39] chore: update node.js.yml fix version update push --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 24e5ed8..45b7ec8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -39,7 +39,7 @@ jobs: echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" echo "FILE_VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4 | sed "s/\./\-/g")" >> "$GITHUB_ENV" - name: Push version and changlog - run: git push origin develop + run: git push --follow-tags origin develop - name: Create Github Release id: create_release uses: actions/create-release@v1 From 50db992bcdac8abbff9f64a6a0ba108edc6536b3 Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 08:54:48 +0100 Subject: [PATCH 34/39] chore: update node.js.yml get push fixed --- .github/workflows/node.js.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 45b7ec8..27c52b0 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -39,7 +39,9 @@ jobs: echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" echo "FILE_VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4 | sed "s/\./\-/g")" >> "$GITHUB_ENV" - name: Push version and changlog - run: git push --follow-tags origin develop + run: | + git show-ref + git push --follow-tags origin HEAD:develop - name: Create Github Release id: create_release uses: actions/create-release@v1 From b661335764af5350e3eb3612dd5086d55dedbefd Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 09:04:42 +0100 Subject: [PATCH 35/39] Update node.js.yml --- .github/workflows/node.js.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 27c52b0..e1ee79a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -29,7 +29,7 @@ jobs: git config user.name "UI5 journey recorder bot" git config user.email "ui5-journey-recorder-bot@users.noreply.github.com" - name: Create changelog and increase version - run: npm run changelog + run: npm run changelog -- --prerelease nightly - name: Build the extension for deploy run: npm run deployBuild -- --pre working-directory: ${{ github.workspace }} @@ -41,7 +41,7 @@ jobs: - name: Push version and changlog run: | git show-ref - git push --follow-tags origin HEAD:develop + git push --follow-tags origin HEAD - name: Create Github Release id: create_release uses: actions/create-release@v1 From cdf28e59e5e1c833fa13f477517c302ff961e821 Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 09:07:28 +0100 Subject: [PATCH 36/39] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index e1ee79a..649cb69 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -41,7 +41,7 @@ jobs: - name: Push version and changlog run: | git show-ref - git push --follow-tags origin HEAD + git push - name: Create Github Release id: create_release uses: actions/create-release@v1 From 802144c3ed15ec572d492126a3a4960efc1fd5fd Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 09:15:09 +0100 Subject: [PATCH 37/39] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 649cb69..eec85c2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -41,7 +41,7 @@ jobs: - name: Push version and changlog run: | git show-ref - git push + git push origin HEAD:develop - name: Create Github Release id: create_release uses: actions/create-release@v1 From f7950bf6c49b1331ed7cccd483168fa90524a653 Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 09:18:32 +0100 Subject: [PATCH 38/39] Update node.js.yml --- .github/workflows/node.js.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index eec85c2..0a362b9 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -41,7 +41,7 @@ jobs: - name: Push version and changlog run: | git show-ref - git push origin HEAD:develop + git push --follow-tags origin develop - name: Create Github Release id: create_release uses: actions/create-release@v1 From 85ccc6eb07671432540347f84f52f31f924795fd Mon Sep 17 00:00:00 2001 From: tabris87 Date: Fri, 1 Mar 2024 09:25:15 +0100 Subject: [PATCH 39/39] Update node.js.yml --- .github/workflows/node.js.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 0a362b9..708e6cd 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -9,8 +9,6 @@ on: - develop paths: - 'webapp/**' - pull_request: - branches: ["develop"] jobs: build-and-release: if: "!startsWith(github.event.head_commit.message, 'chore') && !startsWith(github.event.head_commit.message, 'docs') && !startsWith(github.event.head_commit.message, 'ci')" @@ -39,9 +37,7 @@ jobs: echo "VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)" >> "$GITHUB_ENV" echo "FILE_VERSION=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4 | sed "s/\./\-/g")" >> "$GITHUB_ENV" - name: Push version and changlog - run: | - git show-ref - git push --follow-tags origin develop + run: git push --follow-tags origin develop - name: Create Github Release id: create_release uses: actions/create-release@v1