Skip to content

Commit 798ac59

Browse files
committed
ci: update GitHub Actions versions and upgrade dev dependencies
1 parent baa968f commit 798ac59

14 files changed

Lines changed: 6923 additions & 5214 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: "initialize"
2+
description: "Setup Config"
23

34
runs:
45
using: "composite"
@@ -7,6 +8,6 @@ runs:
78
run: |
89
git config --global core.autocrlf false
910
git config --global core.eol lf
10-
git config --global user.email "actions@gihub.com"
11+
git config --global user.email "actions@github.com"
1112
git config --global user.name "gh-actions"
1213
shell: bash

.github/workflows/build.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,28 @@ jobs:
77
build:
88
runs-on: ${{ matrix.os }}
99

10+
# @see https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ matrix.os }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1015
strategy:
1116
matrix:
12-
node-version: [20.x]
1317
os: [windows-latest, ubuntu-latest]
1418

1519
steps:
16-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1721
- uses: ./.github/actions/initialize
18-
- uses: pnpm/action-setup@v2.2.2
19-
with:
20-
version: 8.15.1
21-
- uses: actions/setup-node@v2
22+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
23+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2224
with:
23-
node-version: "20.x"
25+
node-version-file: "package.json"
2426
cache: "pnpm"
2527
- run: pnpm i --frozen-lockfile
26-
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v1
28+
- name: Use Node.js
29+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2830
with:
29-
node-version: ${{ matrix.node-version }}
31+
node-version-file: "package.json"
3032
- name: Test & Build
3133
run: |
3234
pnpm build

.github/workflows/release.yml

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1212
with:
1313
ref: main
1414
- uses: ./.github/actions/initialize
15-
- uses: pnpm/action-setup@v2.2.2
15+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
16+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1617
with:
17-
version: 8.15.1
18-
- uses: actions/setup-node@v2
19-
with:
20-
node-version: "20.x"
18+
node-version-file: "package.json"
2119
registry-url: https://npm.pkg.github.com
2220
scope: "@Himenon"
2321
cache: "pnpm"
@@ -27,17 +25,17 @@ jobs:
2725
2826
release-github-registry:
2927
runs-on: ubuntu-latest
28+
permissions:
29+
packages: write
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
with:
3333
ref: main
3434
- uses: ./.github/actions/initialize
35-
- uses: pnpm/action-setup@v2.2.2
36-
with:
37-
version: 8.15.1
38-
- uses: actions/setup-node@v2
35+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
36+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3937
with:
40-
node-version: "20.x"
38+
node-version-file: "package.json"
4139
registry-url: https://npm.pkg.github.com
4240
scope: "@Himenon"
4341
cache: "pnpm"
@@ -50,20 +48,18 @@ jobs:
5048
5149
release-npm-registry:
5250
runs-on: ubuntu-latest
51+
permissions:
52+
id-token: write
5353
steps:
54-
- uses: actions/checkout@v2
54+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5555
with:
5656
ref: main
57-
- uses: pnpm/action-setup@v2.2.2
57+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
58+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
5859
with:
59-
version: 8.15.1
60-
- uses: actions/setup-node@v2
61-
with:
62-
node-version: "20.x"
60+
node-version-file: "package.json"
6361
registry-url: "https://registry.npmjs.org"
6462
cache: "pnpm"
6563
- run: pnpm install
6664
- run: pnpm build
67-
- run: pnpm run release:npm:registry
68-
env:
69-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
65+
- run: NPM_CONFIG_PROVENANCE=true pnpm run release:npm:registry

.github/workflows/versionUp.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ jobs:
99
if: github.event_name != 'pull_request'
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1313
with:
1414
ref: main
1515
- uses: ./.github/actions/initialize
16-
- uses: pnpm/action-setup@v2.2.2
16+
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
17+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
1718
with:
18-
version: 8.15.1
19-
- uses: actions/setup-node@v2
20-
with:
21-
node-version: "20.x"
19+
node-version-file: "package.json"
2220
cache: "pnpm"
2321
- run: pnpm i --frozen-lockfile
2422
- name: Auto version update

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ package-lock.json
77
*.log
88
private_npm_cache
99
dist
10+
lefthook-local.yml

.oxfmtrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 144,
3+
"singleQuote": false,
4+
"ignorePatterns": ["node_modules/**", "dist/**"]
5+
}

CHANGELOG.md

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,69 +4,48 @@ All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

66
<a name="2.0.0"></a>
7-
# 2.0.0 (2024-02-04)
87

8+
# 2.0.0 (2024-02-04)
99

1010
### Chores
1111

12-
* bump ([#7](https://github.com/Himenon/message-command-parser/issues/7)) ([815941f](https://github.com/Himenon/message-command-parser/commit/815941f))
13-
12+
- bump ([#7](https://github.com/Himenon/message-command-parser/issues/7)) ([815941f](https://github.com/Himenon/message-command-parser/commit/815941f))
1413

1514
### BREAKING CHANGES
1615

17-
* use esmodule
18-
19-
20-
21-
16+
- use esmodule
2217

2318
<a name="1.1.4"></a>
24-
## 1.1.4 (2024-02-04)
2519

20+
## 1.1.4 (2024-02-04)
2621

2722
### Bug Fixes
2823

29-
* formatter ([#6](https://github.com/Himenon/message-command-parser/issues/6)) ([1ee1189](https://github.com/Himenon/message-command-parser/commit/1ee1189))
30-
31-
32-
33-
24+
- formatter ([#6](https://github.com/Himenon/message-command-parser/issues/6)) ([1ee1189](https://github.com/Himenon/message-command-parser/commit/1ee1189))
3425

3526
<a name="1.1.3"></a>
36-
## 1.1.3 (2022-06-06)
3727

28+
## 1.1.3 (2022-06-06)
3829

3930
### Bug Fixes
4031

41-
* style and invalid url ([#4](https://github.com/Himenon/message-command-parser/issues/4)) ([fdbbd8f](https://github.com/Himenon/message-command-parser/commit/fdbbd8f))
42-
43-
44-
45-
32+
- style and invalid url ([#4](https://github.com/Himenon/message-command-parser/issues/4)) ([fdbbd8f](https://github.com/Himenon/message-command-parser/commit/fdbbd8f))
4633

4734
<a name="1.1.2"></a>
48-
## 1.1.2 (2022-06-06)
4935

36+
## 1.1.2 (2022-06-06)
5037

5138
### Bug Fixes
5239

53-
* github action command ([#3](https://github.com/Himenon/message-command-parser /issues/3)) ([bcc1cd8](https://github.com/Himenon/message-command-parser /commit/bcc1cd8))
54-
55-
56-
57-
40+
- github action command ([#3](https://github.com/Himenon/message-command-parser /issues/3)) ([bcc1cd8](https://github.com/Himenon/message-command-parser /commit/bcc1cd8))
5841

5942
<a name="1.1.1"></a>
60-
## 1.1.1 (2022-06-06)
6143

44+
## 1.1.1 (2022-06-06)
6245

6346
### Bug Fixes
6447

65-
* github action pnpm version ([#2](https://github.com/Himenon/message-command-parser /issues/2)) ([272bfce](https://github.com/Himenon/message-command-parser /commit/272bfce))
66-
67-
68-
69-
48+
- github action pnpm version ([#2](https://github.com/Himenon/message-command-parser /issues/2)) ([272bfce](https://github.com/Himenon/message-command-parser /commit/272bfce))
7049

7150
<a name="1.1.0"></a>
7251

biome.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

lefthook.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pre-commit:
2+
jobs:
3+
- name: oxfmt format
4+
skip:
5+
- merge
6+
glob: "*.{ts,tsx,js,jsx,mjs,cjs,css,html,json,jsonc,json5,yml,yaml,toml,md,mdx}"
7+
run: pnpm run format --write --no-error-on-unmatched-pattern
8+
stage_fixed: true

0 commit comments

Comments
 (0)