From b9d29361a87e75d7f3416440db24e309d541a709 Mon Sep 17 00:00:00 2001 From: Mathias Boeck Date: Thu, 13 Oct 2022 15:09:33 +0200 Subject: [PATCH] Update CI (#146) * ci: fix - replace old action and build only libraries * tag: fix ci to prerelease #145 * ci: update vendor actions * ci: update npm in ci for npm publish #129 * tag: update ci test --- .github/workflows/gh-pages.yml | 4 +-- .github/workflows/package-main-release.yml | 38 +++++++++++----------- .github/workflows/package-pre-release.yml | 36 +++++++++++--------- .github/workflows/test-build.yml | 4 +-- package-lock.json | 4 +-- package.json | 2 +- 6 files changed, 46 insertions(+), 42 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..eb0cbfed1 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,20 +138,20 @@ 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/ 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 @@ -171,20 +171,20 @@ 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/ 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 d2d0a8aa4..07978edcd 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,13 +38,17 @@ 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/build + - uses: ./.github/actions/test + - name: build + run: | + npm ci + npm run build - name: Archive dist artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: "dist" path: dist @@ -53,20 +57,20 @@ 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/ 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 @@ -86,20 +90,20 @@ 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/ 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/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 diff --git a/package-lock.json b/package-lock.json index 9dd837e03..d9a998340 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.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ukis-frontend-libraries", - "version": "10.0.0-alpha.0", + "version": "10.0.0-next.1", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { diff --git a/package.json b/package.json index 61638d3ce..aa370139b 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.1", "license": "Apache-2.0", "author": "Team UKIS", "bugs": {