Skip to content

Commit

Permalink
Merge pull request #46 from HardNorth/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
HardNorth authored Feb 3, 2024
2 parents 9199870 + 501b787 commit 90629cb
Show file tree
Hide file tree
Showing 12 changed files with 3,816 additions and 9,210 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "airbnb-base",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2,
{
"ObjectExpression": 1,
"SwitchCase": 1
}
]
}
}
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Install dependencies
run: npm ci
- name: Test with Jest
run: npm run test
- name: Test with ESLint
run: npm run lint
- name: Build with npm
run: npm run build
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
steps:
# Prepare
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Setup git credentials
run: |
Expand All @@ -41,7 +41,7 @@ jobs:
git config user.password ${{ secrets.GITHUB_TOKEN }}
- name: Generate versions
uses: HardNorth/github-version-generate@v1.2.0
uses: HardNorth/github-version-generate@v1
with:
version-source: file
version-file: ${{ env.VERSION_FILE }}
Expand All @@ -52,6 +52,8 @@ jobs:
run: npm ci
- name: Test with Jest
run: npm run test
- name: Test with ESLint
run: npm run lint
- name: Build with ncc
run: npm run build

Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Changelog

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

## [1.3.0]
### Changed
- NodeJS version updated on 16, by @HardNorth
- Node.js version updated on 16, by @HardNorth
- `@actions/core` and `@actions/github` versions updated on 1.10.0 and 5.1.1 respectively, by @HardNorth
- Minor version updated on `1.3`, by @HardNorth

Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Version generation for GitHub Actions

![CI Build](https://github.com/HardNorth/github-version-generate/workflows/CI%20Build/badge.svg?branch=master)
[![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)
[![License](https://img.shields.io/badge/License-Apache%202.0-brightgreen.svg)](https://opensource.org/licenses/Apache-2.0)

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

steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: '8'

- name: Generate versions
uses: HardNorth/[email protected]
Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get version fragment to bump
id: getVersionFragment
Expand Down
10 changes: 6 additions & 4 deletions README_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: '8'

- name: Generate versions
uses: HardNorth/github-version-generate@v$LATEST_VERSION
Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get version fragment to bump
id: getVersionFragment
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,5 @@ outputs:
description: 'A version prepared for pushing into a repository instead of "CURRENT_VERSION" after release, usually incremented by 1'

runs:
using: 'node16'
using: 'node20'
main: 'build/index.js'
Loading

0 comments on commit 90629cb

Please sign in to comment.