From 7accfa5896972557af1d2d7b85ad169b1080359d Mon Sep 17 00:00:00 2001 From: Technote Date: Tue, 27 Dec 2022 18:53:51 +0900 Subject: [PATCH 1/3] chore: upgrade node version --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 011a167..48bce0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - node: ['12', '14'] + node: ['14', '16', '18'] steps: - name: Set running flag run: echo "RUNNING=1" >> $GITHUB_ENV @@ -72,10 +72,10 @@ jobs: run: echo "RUNNING=" >> $GITHUB_ENV if: "! env.GIT_DIFF" - name: Set running flag - if: "matrix.node == '12' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)" + if: "matrix.node == '14' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)" run: echo "RUNNING=1" >> $GITHUB_ENV - name: Set running flag - if: matrix.node == '12' && startsWith(github.ref, 'refs/tags/v') + if: matrix.node == '14' && startsWith(github.ref, 'refs/tags/v') run: echo "RUNNING=1" >> $GITHUB_ENV - name: Set running flag run: | @@ -114,7 +114,7 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} COVERAGE_FILE: ./coverage/lcov.info - if: env.RUNNING && matrix.node == '12' + if: env.RUNNING && matrix.node == '14' deploy: name: Deploy From 4cd46318fb38987b4663dcf4baa282cac50b82de Mon Sep 17 00:00:00 2001 From: Technote Date: Tue, 27 Dec 2022 19:03:05 +0900 Subject: [PATCH 2/3] chore: update workflow --- .github/workflows/ci.yml | 46 ++++++++++++---------------------------- 1 file changed, 14 insertions(+), 32 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48bce0c..7667d06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,8 @@ on: push +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + name: CI jobs: @@ -10,14 +13,11 @@ jobs: env: LINT: 1 steps: - - uses: technote-space/auto-cancel-redundant-workflow@v1 - with: - EXCLUDE_MERGED: 'true' - name: Set running flag run: echo "RUNNING=1" >> $GITHUB_ENV - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: technote-space/get-git-comment-action@v1 - - uses: technote-space/get-diff-action@v4 + - uses: technote-space/get-diff-action@v6 with: PATTERNS: +(src|__tests__)/**/*.+(js|ts) FILES: .eslintrc @@ -26,17 +26,10 @@ jobs: run: echo "RUNNING=" >> $GITHUB_ENV if: "! env.GIT_DIFF" - - name: Get Yarn Cache Directory - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - if: env.RUNNING - - name: Cache node dependencies - uses: actions/cache@v1 + - uses: actions/setup-node@v3 with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version: 14 + cache: yarn if: env.RUNNING - name: Install Package dependencies run: yarn install @@ -59,9 +52,9 @@ jobs: steps: - name: Set running flag run: echo "RUNNING=1" >> $GITHUB_ENV - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: technote-space/get-git-comment-action@v1 - - uses: technote-space/get-diff-action@v4 + - uses: technote-space/get-diff-action@v6 with: PATTERNS: +(src|__tests__)/**/*.+(js|ts|snap) FILES: | @@ -84,21 +77,10 @@ jobs: fi - name: Setup node - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} - if: env.RUNNING - - name: Get Yarn Cache Directory - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - if: env.RUNNING - - name: Cache node dependencies - uses: actions/cache@v1 - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: yarn if: env.RUNNING - name: Install Package dependencies run: yarn install @@ -123,10 +105,10 @@ jobs: timeout-minutes: 10 if: startsWith(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: path: main - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: repository: technote-space/ga-framework ref: gh-pages From 2a038f195876fef2ff2aae931d483a9d26533954 Mon Sep 17 00:00:00 2001 From: Technote Date: Tue, 27 Dec 2022 19:04:51 +0900 Subject: [PATCH 3/3] feat: update package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index db81cc2..765d71c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@technote-space/hello-genetic-algorithm", - "version": "0.2.0", + "version": "0.2.1", "description": "Hello Genetic Algorithm", "keywords": [ "genetic algorithm"