Skip to content

Commit b40e9ea

Browse files
chore: update dev deps and release workflow
1 parent 05fd8e6 commit b40e9ea

35 files changed

Lines changed: 238 additions & 774 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
create-documentation-and-deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v5
11+
- uses: actions/checkout@v6
1212

1313
- name: Enable Corepack
1414
run: corepack enable
@@ -28,7 +28,7 @@ jobs:
2828
run: yarn typedoc --tsconfig tsconfig.doc.json
2929

3030
- name: Generate Coverage
31-
run: yarn test:coverage:json
31+
run: yarn run test:coverage:json
3232

3333
- name: Create nojekyll
3434
run: touch docs/.nojekyll

.github/workflows/push-renovate-build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ on:
55
branches:
66
- "renovate/rollup-**"
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
run-rollup-build:
1013
runs-on: ubuntu-latest
1114
steps:
12-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1316
with:
14-
token: ${{ secrets.GH_TOKEN }}
17+
ssh-key: ${{ secrets.PUSH_DEPLOY_KEY }}
1518

1619
- name: Enable Corepack
1720
run: corepack enable

.github/workflows/push-renovate-pob_root.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77
- "renovate/pob-root-**"
88
- "renovate/major-pob-root"
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
run-install-and-commit-modified-files:
1215
runs-on: ubuntu-latest
1316
steps:
14-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@v6
1518
with:
16-
token: ${{ secrets.GH_TOKEN }}
19+
ssh-key: ${{ secrets.PUSH_DEPLOY_KEY }}
1720

1821
- name: Enable Corepack
1922
run: corepack enable

.github/workflows/push-renovate-prettier.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ on:
66
- "renovate/prettier-**"
77
- "renovate/major-prettier"
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
run-prettier:
1114
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1417
with:
15-
token: ${{ secrets.GH_TOKEN }}
18+
ssh-key: ${{ secrets.PUSH_DEPLOY_KEY }}
1619

1720
- name: Enable Corepack
1821
run: corepack enable

.github/workflows/push.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: Push CI
2-
2+
permissions:
3+
contents: read
34
on: [push]
45

56
jobs:
67
checks:
78
runs-on: ubuntu-latest
89

910
steps:
10-
- uses: actions/checkout@v5
11+
- uses: actions/checkout@v6
1112

1213
- name: Enable Corepack
1314
run: corepack enable
@@ -21,13 +22,13 @@ jobs:
2122
run: yarn install --immutable
2223

2324
- name: Checks
24-
run: yarn run checks
25+
run: run checks
2526

2627
build:
2728
runs-on: ubuntu-latest
2829

2930
steps:
30-
- uses: actions/checkout@v5
31+
- uses: actions/checkout@v6
3132

3233
- name: Enable Corepack
3334
run: corepack enable
@@ -41,16 +42,16 @@ jobs:
4142
run: yarn install --immutable
4243

4344
- name: Build
44-
run: yarn run build
45+
run: run build
4546

4647
- name: Check nothing was forgotten before commit
47-
run: yarn run repository-check-dirty
48+
run: run repository-check-dirty
4849

4950
lint:
5051
runs-on: ubuntu-latest
5152

5253
steps:
53-
- uses: actions/checkout@v5
54+
- uses: actions/checkout@v6
5455

5556
- name: Enable Corepack
5657
run: corepack enable
@@ -64,13 +65,13 @@ jobs:
6465
run: yarn install --immutable
6566

6667
- name: Prettier
67-
run: yarn run lint:prettier
68+
run: run lint:prettier
6869

6970
- name: Typescript
70-
run: yarn run tsc
71+
run: run tsc
7172

7273
- name: Eslint
73-
run: yarn run lint:eslint
74+
run: run lint:eslint
7475

7576
test:
7677
runs-on: ubuntu-latest
@@ -80,7 +81,7 @@ jobs:
8081
node-version: [22]
8182

8283
steps:
83-
- uses: actions/checkout@v5
84+
- uses: actions/checkout@v6
8485

8586
- name: Enable Corepack
8687
run: corepack enable
Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ on:
1313
type: boolean
1414
default: false
1515

16+
permissions:
17+
id-token: write # Required for OIDC
18+
contents: write
19+
1620
jobs:
1721
release:
1822
runs-on: ubuntu-latest
1923
steps:
20-
- uses: actions/checkout@v5
24+
- uses: actions/checkout@v6
2125
with:
22-
token: ${{ secrets.GH_TOKEN }}
26+
ssh-key: ${{ secrets.PUSH_DEPLOY_KEY }}
2327
fetch-depth: 0
2428
fetch-tags: true
2529

@@ -30,6 +34,7 @@ jobs:
3034
with:
3135
node-version: 22
3236
check-latest: true
37+
registry-url: "https://registry.npmjs.org"
3338

3439
- name: Check git tags
3540
if: github.ref == 'refs/heads/main' && !inputs.allow-no-tags
@@ -45,7 +50,7 @@ jobs:
4550

4651
- name: New version (dry run)
4752
if: github.ref == 'refs/heads/main' && inputs.dry-run
48-
run: yarn yarn-version version --dry-run
53+
run: yarn run pob-version --dry-run
4954

5055
- name: Configure Git user
5156
if: github.ref == 'refs/heads/main' && !inputs.dry-run
@@ -56,21 +61,21 @@ jobs:
5661
- name: New version
5762
if: github.ref == 'refs/heads/main' && !inputs.dry-run
5863
run: |
59-
yarn yarn-version version --create-release=github -m 'chore: release %v [skip ci]'
64+
yarn run pob-version --create-release=github -m 'chore: release %v [skip ci]'
6065
env:
61-
HUSKY: 0
62-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
66+
POB_GIT_HOOKS: 0
6367
YARN_ENABLE_IMMUTABLE_INSTALLS: false
68+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6469

6570
- name: Publish to npm
71+
if: github.ref == 'refs/heads/main' && !inputs.dry-run
6672
run: |
67-
if [ -z "$NODE_AUTH_TOKEN" ]; then
68-
echo "Missing env variable NODE_AUTH_TOKEN"
73+
if [ -z "$NPM_AUTH_TOKEN" ]; then
74+
echo "Missing env variable NPM_AUTH_TOKEN"
6975
exit 1
7076
fi
7177
echo >> ./.yarnrc.yml
72-
echo "npmAuthToken: $NODE_AUTH_TOKEN" >> ./.yarnrc.yml
78+
echo "npmAuthToken: $NPM_AUTH_TOKEN" >> ./.yarnrc.yml
7379
yarn workspaces foreach --all --parallel --no-private npm publish --tolerate-republish
74-
if: github.ref == 'refs/heads/main' && !inputs.dry-run
7580
env:
76-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
81+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CHANGELOG.md
2-
/.yarnrc.yml
32
/docs
3+
/.yarnrc.yml
44
/.yarn/**/*
55
/packages/*/dist
66
/packages/*/build

.yarnrc.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
defaultSemverRangePrefix: ^
2-
32
enableGlobalCache: true
4-
53
nodeLinker: node-modules
4+
npmMinimalAgeGate: 4320
5+
npmPreapprovedPackages:
6+
- "@pob/*"
7+
- alouette
8+
- alouette-icons
9+
- nightingale
10+
- nightingale-logger

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"repository": "https://github.com/christophehurpeau/nightingale.git",
99
"homepage": "https://github.com/christophehurpeau/nightingale",
1010
"type": "module",
11-
"packageManager": "yarn@4.11.0",
11+
"packageManager": "yarn@4.12.0",
1212
"engines": {
1313
"node": ">=22.18.0"
1414
},
@@ -43,13 +43,13 @@
4343
"@pob/eslint-config": "62.0.0",
4444
"@pob/eslint-config-typescript": "62.0.0",
4545
"@pob/rollup-esbuild": "7.4.2",
46-
"@pob/root": "19.8.0",
46+
"@pob/root": "20.4.2",
4747
"@types/node": "24.10.4",
48-
"@vitest/coverage-v8": "4.0.16",
48+
"@vitest/coverage-v8": "4.0.10",
4949
"check-package-dependencies": "10.5.0",
5050
"eslint": "9.39.2",
5151
"typedoc": "0.28.15",
5252
"typescript": "5.9.3",
53-
"vitest": "4.0.16"
53+
"vitest": "4.0.10"
5454
}
5555
}

packages/nightingale-ansi-formatter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"scripts": {
3535
"clean": "yarn clean:build",
3636
"lint": "yarn run lint:eslint",
37-
"lint:eslint": "yarn ../.. run eslint --quiet packages/nightingale-ansi-formatter",
38-
"test": "yarn ../../ run test -- packages/nightingale-ansi-formatter",
37+
"lint:eslint": "yarn '../..' run eslint --quiet 'packages/nightingale-ansi-formatter'",
38+
"test": "yarn '../..' run test -- 'packages/nightingale-ansi-formatter'",
3939
"watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
4040
},
4141
"pob": {},

0 commit comments

Comments
 (0)