Skip to content

Commit 6de4e10

Browse files
Merge pull request #52 from technote-space/release/next-v0.2.0
release: v0.2.1
2 parents 5d8de0f + 2a038f1 commit 6de4e10

File tree

2 files changed

+19
-37
lines changed

2 files changed

+19
-37
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
on: push
22

3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
36
name: CI
47

58
jobs:
@@ -10,14 +13,11 @@ jobs:
1013
env:
1114
LINT: 1
1215
steps:
13-
- uses: technote-space/auto-cancel-redundant-workflow@v1
14-
with:
15-
EXCLUDE_MERGED: 'true'
1616
- name: Set running flag
1717
run: echo "RUNNING=1" >> $GITHUB_ENV
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
- uses: technote-space/get-git-comment-action@v1
20-
- uses: technote-space/get-diff-action@v4
20+
- uses: technote-space/get-diff-action@v6
2121
with:
2222
PATTERNS: +(src|__tests__)/**/*.+(js|ts)
2323
FILES: .eslintrc
@@ -26,17 +26,10 @@ jobs:
2626
run: echo "RUNNING=" >> $GITHUB_ENV
2727
if: "! env.GIT_DIFF"
2828

29-
- name: Get Yarn Cache Directory
30-
id: yarn-cache
31-
run: echo "::set-output name=dir::$(yarn cache dir)"
32-
if: env.RUNNING
33-
- name: Cache node dependencies
34-
uses: actions/cache@v1
29+
- uses: actions/setup-node@v3
3530
with:
36-
path: ${{ steps.yarn-cache.outputs.dir }}
37-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38-
restore-keys: |
39-
${{ runner.os }}-yarn-
31+
node-version: 14
32+
cache: yarn
4033
if: env.RUNNING
4134
- name: Install Package dependencies
4235
run: yarn install
@@ -55,13 +48,13 @@ jobs:
5548
timeout-minutes: 10
5649
strategy:
5750
matrix:
58-
node: ['12', '14']
51+
node: ['14', '16', '18']
5952
steps:
6053
- name: Set running flag
6154
run: echo "RUNNING=1" >> $GITHUB_ENV
62-
- uses: actions/checkout@v2
55+
- uses: actions/checkout@v3
6356
- uses: technote-space/get-git-comment-action@v1
64-
- uses: technote-space/get-diff-action@v4
57+
- uses: technote-space/get-diff-action@v6
6558
with:
6659
PATTERNS: +(src|__tests__)/**/*.+(js|ts|snap)
6760
FILES: |
@@ -72,10 +65,10 @@ jobs:
7265
run: echo "RUNNING=" >> $GITHUB_ENV
7366
if: "! env.GIT_DIFF"
7467
- name: Set running flag
75-
if: "matrix.node == '12' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
68+
if: "matrix.node == '14' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
7669
run: echo "RUNNING=1" >> $GITHUB_ENV
7770
- name: Set running flag
78-
if: matrix.node == '12' && startsWith(github.ref, 'refs/tags/v')
71+
if: matrix.node == '14' && startsWith(github.ref, 'refs/tags/v')
7972
run: echo "RUNNING=1" >> $GITHUB_ENV
8073
- name: Set running flag
8174
run: |
@@ -84,21 +77,10 @@ jobs:
8477
fi
8578
8679
- name: Setup node
87-
uses: actions/setup-node@v1
80+
uses: actions/setup-node@v3
8881
with:
8982
node-version: ${{ matrix.node }}
90-
if: env.RUNNING
91-
- name: Get Yarn Cache Directory
92-
id: yarn-cache
93-
run: echo "::set-output name=dir::$(yarn cache dir)"
94-
if: env.RUNNING
95-
- name: Cache node dependencies
96-
uses: actions/cache@v1
97-
with:
98-
path: ${{ steps.yarn-cache.outputs.dir }}
99-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
100-
restore-keys: |
101-
${{ runner.os }}-yarn-
83+
cache: yarn
10284
if: env.RUNNING
10385
- name: Install Package dependencies
10486
run: yarn install
@@ -114,7 +96,7 @@ jobs:
11496
env:
11597
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
11698
COVERAGE_FILE: ./coverage/lcov.info
117-
if: env.RUNNING && matrix.node == '12'
99+
if: env.RUNNING && matrix.node == '14'
118100

119101
deploy:
120102
name: Deploy
@@ -123,10 +105,10 @@ jobs:
123105
timeout-minutes: 10
124106
if: startsWith(github.ref, 'refs/tags/')
125107
steps:
126-
- uses: actions/checkout@v2
108+
- uses: actions/checkout@v3
127109
with:
128110
path: main
129-
- uses: actions/checkout@v2
111+
- uses: actions/checkout@v3
130112
with:
131113
repository: technote-space/ga-framework
132114
ref: gh-pages

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/hello-genetic-algorithm",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Hello Genetic Algorithm",
55
"keywords": [
66
"genetic algorithm"

0 commit comments

Comments
 (0)