From 08172891870885656a9ce338c7e35667d608f807 Mon Sep 17 00:00:00 2001 From: Mathias Boeck Date: Thu, 13 Oct 2022 10:42:52 +0200 Subject: [PATCH 1/5] ci: fix - replace old action and build only libraries --- .github/workflows/package-pre-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-pre-release.yml b/.github/workflows/package-pre-release.yml index d2d0a8aa4..eb98f1fc4 100644 --- a/.github/workflows/package-pre-release.yml +++ b/.github/workflows/package-pre-release.yml @@ -42,7 +42,11 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 16 - - uses: ./.github/actions/build + - uses: ./.github/actions/test + - name: build + run: | + npm ci + npm run build - name: Archive dist artifacts uses: actions/upload-artifact@v2 with: From 14cf39fb4e30b0d88eec1951da07ff91258f3c92 Mon Sep 17 00:00:00 2001 From: Mathias Boeck Date: Thu, 13 Oct 2022 10:58:46 +0200 Subject: [PATCH 2/5] tag: fix ci to prerelease #145 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9dd837e03..b9d06f1a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ukis-frontend-libraries", - "version": "10.0.0-alpha.0", + "version": "10.0.0-next.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ukis-frontend-libraries", - "version": "10.0.0-alpha.0", + "version": "10.0.0-next.0", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index 61638d3ce..b1b17e45b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ukis-frontend-libraries", - "version": "10.0.0-alpha.0", + "version": "10.0.0-next.0", "license": "Apache-2.0", "author": "Team UKIS", "bugs": { From 97b7e78babdc9a41fec74732980b7ef00364251b Mon Sep 17 00:00:00 2001 From: Mathias Boeck Date: Thu, 13 Oct 2022 12:01:45 +0200 Subject: [PATCH 3/5] ci: update vendor actions --- .github/workflows/gh-pages.yml | 4 +-- .github/workflows/package-main-release.yml | 30 +++++++++++----------- .github/workflows/package-pre-release.yml | 22 ++++++++-------- .github/workflows/test-build.yml | 4 +-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 692c10c2b..cc631394f 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -9,8 +9,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.1 - - uses: actions/setup-node@v2 + uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16.10.0 diff --git a/.github/workflows/package-main-release.yml b/.github/workflows/package-main-release.yml index e6b2c3fba..d77723dd7 100644 --- a/.github/workflows/package-main-release.yml +++ b/.github/workflows/package-main-release.yml @@ -24,10 +24,10 @@ jobs: runs-on: ubuntu-latest needs: checkHeadBranch steps: - # - uses: actions/checkout@v2 + # - uses: actions/checkout@v3 # needs uses: actions/checkout@ if script/module is required - name: checkTitelTag - uses: actions/github-script@v5 + uses: actions/github-script@v6 id: get-tag with: result-encoding: string @@ -61,12 +61,12 @@ jobs: needs: checkTitelTag if: ${{ needs.checkTitelTag.outputs.VERSION_TAG != '' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: checkout tag run: | git fetch --all --tags git checkout ${{ needs.checkTitelTag.outputs.VERSION_TAG }} - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 16 - run: rm -f .npmrc @@ -81,12 +81,12 @@ jobs: runs-on: ubuntu-latest if: ${{ needs.checkTitelTag.outputs.VERSION_TAG != '' }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: checkout tag run: | git fetch --all --tags git checkout ${{ needs.checkTitelTag.outputs.VERSION_TAG }} - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 16 - name: build @@ -94,7 +94,7 @@ jobs: npm ci npm run build - name: Archive dist artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: "dist" path: dist @@ -105,7 +105,7 @@ jobs: needs: build steps: - name: checkLabel - uses: actions/github-script@v5 + uses: actions/github-script@v6 with: script: | if(context.payload.pull_request.labels){ @@ -123,7 +123,7 @@ jobs: if: ${{ needs.checkTitelTag.outputs.VERSION_TAG != '' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: checkout tag run: | git fetch --all --tags @@ -138,13 +138,13 @@ jobs: needs: [checkHeadBranch, checkTitelTag, checkTagOnNpm, build, checkLabel, gh-release] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download dist result from job build - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: "dist" path: dist - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 16 registry-url: https://npm.pkg.github.com/ @@ -171,13 +171,13 @@ jobs: needs: [checkHeadBranch, checkTitelTag, checkTagOnNpm, build, checkLabel, gh-release] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download dist result from job build - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: "dist" path: dist - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 16 registry-url: https://registry.npmjs.org/ diff --git a/.github/workflows/package-pre-release.yml b/.github/workflows/package-pre-release.yml index eb98f1fc4..d5804c798 100644 --- a/.github/workflows/package-pre-release.yml +++ b/.github/workflows/package-pre-release.yml @@ -13,8 +13,8 @@ jobs: runs-on: ubuntu-latest steps: # check out before using actions reference from the same repository! - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - run: rm -f .npmrc @@ -38,8 +38,8 @@ jobs: needs: checkTagOnNpm runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - uses: ./.github/actions/test @@ -48,7 +48,7 @@ jobs: npm ci npm run build - name: Archive dist artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: "dist" path: dist @@ -57,13 +57,13 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download dist result from job build - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: "dist" path: dist - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 16 registry-url: https://npm.pkg.github.com/ @@ -90,13 +90,13 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Download dist result from job build - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: "dist" path: dist - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: 16 registry-url: https://registry.npmjs.org/ diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index c5c1abbad..15b814228 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -20,8 +20,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 - uses: ./.github/actions/test From f9239e07849e753bb63dcaf8606e0c6de30516f5 Mon Sep 17 00:00:00 2001 From: Mathias Boeck Date: Thu, 13 Oct 2022 14:26:13 +0200 Subject: [PATCH 4/5] ci: update npm in ci for npm publish #129 --- .github/workflows/package-main-release.yml | 8 ++++---- .github/workflows/package-pre-release.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/package-main-release.yml b/.github/workflows/package-main-release.yml index d77723dd7..eb0cbfed1 100644 --- a/.github/workflows/package-main-release.yml +++ b/.github/workflows/package-main-release.yml @@ -150,8 +150,8 @@ jobs: registry-url: https://npm.pkg.github.com/ scope: "@dlr-eoc" - run: npm ci - ### install npm 6 for publish https://github.com/npm/cli/issues/2453 - - run: npm i -g npm@6.14.13 + ### update npm to >8.19 for publish https://github.com/npm/cli/issues/2453 https://github.com/npm/cli/issues/3573 + - run: npm i -g npm@8.19.2 - run: rm -f .npmrc ### for each module in dist set version from repository package.json - run: node scripts/library/index.js --set @@ -183,8 +183,8 @@ jobs: registry-url: https://registry.npmjs.org/ scope: "@dlr-eoc" - run: npm ci - ### install npm 6 for publish https://github.com/npm/cli/issues/2453 - - run: npm i -g npm@6.14.13 + ### update npm to >8.19 for publish https://github.com/npm/cli/issues/2453 https://github.com/npm/cli/issues/3573 + - run: npm i -g npm@8.19.2 - run: rm -f .npmrc ### for each module in dist set version from repository package.json - run: node scripts/library/index.js --set diff --git a/.github/workflows/package-pre-release.yml b/.github/workflows/package-pre-release.yml index d5804c798..07978edcd 100644 --- a/.github/workflows/package-pre-release.yml +++ b/.github/workflows/package-pre-release.yml @@ -69,8 +69,8 @@ jobs: registry-url: https://npm.pkg.github.com/ scope: "@dlr-eoc" - run: npm ci - ### install npm 6 for publish https://github.com/npm/cli/issues/2453 - - run: npm i -g npm@6.14.13 + ### update npm to >8.19 for publish https://github.com/npm/cli/issues/2453 https://github.com/npm/cli/issues/3573 + - run: npm i -g npm@8.19.2 - run: rm -f .npmrc ### for each module in dist set version from repository package.json - run: node scripts/library/index.js --set @@ -102,8 +102,8 @@ jobs: registry-url: https://registry.npmjs.org/ scope: "@dlr-eoc" - run: npm ci - ### install npm 6 for publish https://github.com/npm/cli/issues/2453 - - run: npm i -g npm@6.14.13 + ### update npm to >8.19 for publish https://github.com/npm/cli/issues/2453 https://github.com/npm/cli/issues/3573 + - run: npm i -g npm@8.19.2 - run: rm -f .npmrc ### for each module in dist set version from repository package.json - run: node scripts/library/index.js --set From 8b1ec6b8b6aea61faa9176e4751c3e30918fb10f Mon Sep 17 00:00:00 2001 From: Mathias Boeck Date: Thu, 13 Oct 2022 14:30:17 +0200 Subject: [PATCH 5/5] tag: update ci test --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9d06f1a8..d9a998340 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ukis-frontend-libraries", - "version": "10.0.0-next.0", + "version": "10.0.0-next.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ukis-frontend-libraries", - "version": "10.0.0-next.0", + "version": "10.0.0-next.1", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index b1b17e45b..aa370139b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ukis-frontend-libraries", - "version": "10.0.0-next.0", + "version": "10.0.0-next.1", "license": "Apache-2.0", "author": "Team UKIS", "bugs": {