Skip to content

Commit 90629cb

Browse files
authored
Merge pull request #46 from HardNorth/develop
Release
2 parents 9199870 + 501b787 commit 90629cb

12 files changed

Lines changed: 3816 additions & 9210 deletions

File tree

.eslintrc.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": "airbnb-base",
3+
"parserOptions": {
4+
"ecmaVersion": 2018,
5+
"sourceType": "module"
6+
},
7+
"rules": {
8+
"indent": [
9+
"error",
10+
2,
11+
{
12+
"ObjectExpression": 1,
13+
"SwitchCase": 1
14+
}
15+
]
16+
}
17+
}

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@ jobs:
1515

1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Set up Node.js
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
2222
with:
23-
node-version: 16
23+
node-version: 20
2424

2525
- name: Install dependencies
2626
run: npm ci
2727
- name: Test with Jest
2828
run: npm run test
29+
- name: Test with ESLint
30+
run: npm run lint
2931
- name: Build with npm
3032
run: npm run build

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ jobs:
2727
steps:
2828
# Prepare
2929
- name: Checkout repository
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131

3232
- name: Set up Node.js
33-
uses: actions/setup-node@v3
33+
uses: actions/setup-node@v4
3434
with:
35-
node-version: 16
35+
node-version: 20
3636

3737
- name: Setup git credentials
3838
run: |
@@ -41,7 +41,7 @@ jobs:
4141
git config user.password ${{ secrets.GITHUB_TOKEN }}
4242
4343
- name: Generate versions
44-
uses: HardNorth/github-version-generate@v1.2.0
44+
uses: HardNorth/github-version-generate@v1
4545
with:
4646
version-source: file
4747
version-file: ${{ env.VERSION_FILE }}
@@ -52,6 +52,8 @@ jobs:
5252
run: npm ci
5353
- name: Test with Jest
5454
run: npm run test
55+
- name: Test with ESLint
56+
run: npm run lint
5557
- name: Build with ncc
5658
run: npm run build
5759

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Changed
5+
- Node.js version updated on 20, by @HardNorth
6+
- Minor version updated on `1.4`, by @HardNorth
7+
- Move common logic to `app.js` file to avoid running application on import, by @HardNorth
48

59
## [1.3.0]
610
### Changed
7-
- NodeJS version updated on 16, by @HardNorth
11+
- Node.js version updated on 16, by @HardNorth
812
- `@actions/core` and `@actions/github` versions updated on 1.10.0 and 5.1.1 respectively, by @HardNorth
913
- Minor version updated on `1.3`, by @HardNorth
1014

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Version generation for GitHub Actions
22

3-
![CI Build](https://github.com/HardNorth/github-version-generate/workflows/CI%20Build/badge.svg?branch=master)
3+
[![CI Build](https://github.com/HardNorth/github-version-generate/actions/workflows/ci.yml/badge.svg)](https://github.com/HardNorth/github-version-generate/actions/workflows/ci.yml)
44
[![License](https://img.shields.io/badge/License-Apache%202.0-brightgreen.svg)](https://opensource.org/licenses/Apache-2.0)
55

66
> Please star this repository if you like the application, it will help more people see it. Thank you!
@@ -67,12 +67,14 @@ jobs:
6767
runs-on: ubuntu-latest
6868

6969
steps:
70-
- uses: actions/checkout@v2
70+
- name: Checkout repository
71+
uses: actions/checkout@v3
7172

7273
- name: Set up JDK 1.8
73-
uses: actions/setup-java@v1
74+
uses: actions/setup-java@v3
7475
with:
75-
java-version: 1.8
76+
distribution: 'temurin'
77+
java-version: '8'
7678

7779
- name: Generate versions
7880
uses: HardNorth/github-version-generate@v1.3.0
@@ -112,7 +114,7 @@ jobs:
112114
runs-on: ubuntu-latest
113115
steps:
114116
- name: Checkout repository
115-
uses: actions/checkout@v2
117+
uses: actions/checkout@v3
116118

117119
- name: Get version fragment to bump
118120
id: getVersionFragment

README_TEMPLATE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ jobs:
6767
runs-on: ubuntu-latest
6868

6969
steps:
70-
- uses: actions/checkout@v2
70+
- name: Checkout repository
71+
uses: actions/checkout@v3
7172

7273
- name: Set up JDK 1.8
73-
uses: actions/setup-java@v1
74+
uses: actions/setup-java@v3
7475
with:
75-
java-version: 1.8
76+
distribution: 'temurin'
77+
java-version: '8'
7678

7779
- name: Generate versions
7880
uses: HardNorth/github-version-generate@v$LATEST_VERSION
@@ -112,7 +114,7 @@ jobs:
112114
runs-on: ubuntu-latest
113115
steps:
114116
- name: Checkout repository
115-
uses: actions/checkout@v2
117+
uses: actions/checkout@v3
116118

117119
- name: Get version fragment to bump
118120
id: getVersionFragment

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,5 @@ outputs:
153153
description: 'A version prepared for pushing into a repository instead of "CURRENT_VERSION" after release, usually incremented by 1'
154154

155155
runs:
156-
using: 'node16'
156+
using: 'node20'
157157
main: 'build/index.js'

0 commit comments

Comments
 (0)