feat: upgrade yarn, prettier format all, upgrade actions (#74)

* feat: upgrade yarn, prettier format all, upgrade actions

* fix: postinstall script and .releaserc.json
This commit is contained in:
2025-12-01 09:59:53 +02:00
committed by GitHub
parent ec699199a1
commit 1a41b48f0c
18 changed files with 4465 additions and 3368 deletions

View File

@@ -33,15 +33,15 @@ fullest extent, we want to know.
The following behaviors are expected and requested of all community members: The following behaviors are expected and requested of all community members:
* Participate in an authentic and active way. In doing so, you contribute to the - Participate in an authentic and active way. In doing so, you contribute to the
health and longevity of this community. health and longevity of this community.
* Exercise consideration and respect in your speech and actions. - Exercise consideration and respect in your speech and actions.
* Attempt collaboration before conflict. - Attempt collaboration before conflict.
* Refrain from demeaning, discriminatory, or harassing behavior and speech. - Refrain from demeaning, discriminatory, or harassing behavior and speech.
* Be mindful of your surroundings and of your fellow participants. Alert - Be mindful of your surroundings and of your fellow participants. Alert
community leaders if you notice a dangerous situation, someone in distress, or community leaders if you notice a dangerous situation, someone in distress, or
violations of this Code of Conduct, even if they seem inconsequential. violations of this Code of Conduct, even if they seem inconsequential.
* Remember that community event venues may be shared with members of the public; - Remember that community event venues may be shared with members of the public;
please be respectful to all patrons of these locations. please be respectful to all patrons of these locations.
## 4. Unacceptable Behavior ## 4. Unacceptable Behavior
@@ -49,23 +49,23 @@ The following behaviors are expected and requested of all community members:
The following behaviors are considered harassment and are unacceptable within The following behaviors are considered harassment and are unacceptable within
our community: our community:
* Violence, threats of violence or violent language directed against another - Violence, threats of violence or violent language directed against another
person. person.
* Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory - Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory
jokes and language. jokes and language.
* Posting or displaying sexually explicit or violent material. - Posting or displaying sexually explicit or violent material.
* Posting or threatening to post other people's personally identifying - Posting or threatening to post other people's personally identifying
information ("doxing"). information ("doxing").
* Personal insults, particularly those related to gender, sexual orientation, - Personal insults, particularly those related to gender, sexual orientation,
race, religion, or disability. race, religion, or disability.
* Inappropriate photography or recording. - Inappropriate photography or recording.
* Inappropriate physical contact. You should have someone's consent before - Inappropriate physical contact. You should have someone's consent before
touching them. touching them.
* Unwelcome sexual attention. This includes, sexualized comments or jokes; - Unwelcome sexual attention. This includes, sexualized comments or jokes;
inappropriate touching, groping, and unwelcomed sexual advances. inappropriate touching, groping, and unwelcomed sexual advances.
* Deliberate intimidation, stalking or following (online or in person). - Deliberate intimidation, stalking or following (online or in person).
* Advocating for, or encouraging, any of the above behavior. - Advocating for, or encouraging, any of the above behavior.
* Sustained disruption of community events, including talks and presentations. - Sustained disruption of community events, including talks and presentations.
## 5. Weapons Policy ## 5. Weapons Policy
@@ -133,10 +133,10 @@ under a [Creative Commons Attribution-ShareAlike license][cc-by-sa].
Portions of text derived from the [Django Code of Conduct][django] and Portions of text derived from the [Django Code of Conduct][django] and
the [Geek Feminism Anti-Harassment Policy][geek-feminism]. the [Geek Feminism Anti-Harassment Policy][geek-feminism].
* _Revision 2.3. Posted 6 March 2017._ - _Revision 2.3. Posted 6 March 2017._
* _Revision 2.2. Posted 4 February 2016._ - _Revision 2.2. Posted 4 February 2016._
* _Revision 2.1. Posted 23 June 2014._ - _Revision 2.1. Posted 23 June 2014._
* _Revision 2.0, adopted by the [Stumptown Syndicate][stumptown] board on 10 - _Revision 2.0, adopted by the [Stumptown Syndicate][stumptown] board on 10
January 2013. Posted 17 March 2013._ January 2013. Posted 17 March 2013._
[stumptown]: https://github.com/stumpsyn [stumptown]: https://github.com/stumpsyn

View File

@@ -1,10 +1,9 @@
--- ---
name: Bug report name: Bug report
about: Create a report to help us improve about: Create a report to help us improve
title: '' title: ""
labels: bug labels: bug
assignees: ivuorinen assignees: ivuorinen
--- ---
**Describe the bug** **Describe the bug**
@@ -12,6 +11,7 @@ A clear and concise description of what the bug is.
**To Reproduce** **To Reproduce**
Steps to reproduce the behavior: Steps to reproduce the behavior:
1. Go to '...' 1. Go to '...'
2. Click on '....' 2. Click on '....'
3. Scroll down to '....' 3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem. If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):** **Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari] - OS: [e.g. iOS]
- Version [e.g. 22] - Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):** **Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1] - Device: [e.g. iPhone6]
- Browser [e.g. stock browser, safari] - OS: [e.g. iOS8.1]
- Version [e.g. 22] - Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context** **Additional context**
Add any other context about the problem here. Add any other context about the problem here.

View File

@@ -1,10 +1,9 @@
--- ---
name: Feature request name: Feature request
about: Suggest an idea for this project about: Suggest an idea for this project
title: '' title: ""
labels: enhancement labels: enhancement
assignees: ivuorinen assignees: ivuorinen
--- ---
**Is your feature request related to a problem? Please describe.** **Is your feature request related to a problem? Please describe.**

View File

@@ -1,6 +1,4 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": ["github>ivuorinen/renovate-config"]
"github>ivuorinen/renovate-config"
]
} }

View File

@@ -1,14 +1,14 @@
--- ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: 'CodeQL' name: "CodeQL"
on: on:
push: push:
branches: ['main'] branches: ["main"]
pull_request: pull_request:
branches: ['main'] branches: ["main"]
schedule: schedule:
- cron: '30 1 * * 0' # Run at 1:30 AM UTC every Sunday - cron: "30 1 * * 0" # Run at 1:30 AM UTC every Sunday
merge_group: merge_group:
permissions: permissions:
@@ -25,22 +25,22 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: ['javascript'] # Add languages used in your actions language: ["javascript"] # Add languages used in your actions
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 uses: github/codeql-action/init@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
queries: security-and-quality queries: security-and-quality
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 uses: github/codeql-action/autobuild@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 uses: github/codeql-action/analyze@fdbfb4d2750291e159f0156def62b853c2798ca2 # v4.31.5
with: with:
category: '/language:${{matrix.language}}' category: "/language:${{matrix.language}}"

View File

@@ -27,4 +27,4 @@ jobs:
steps: steps:
- name: Run PR Lint - name: Run PR Lint
# https://github.com/ivuorinen/actions # https://github.com/ivuorinen/actions
uses: ivuorinen/actions/pr-lint@d3cc8d4790723db59c5e27d2e370fdad3663c7bd # 25.10.12 uses: ivuorinen/actions/pr-lint@fbbb487332f2b01379192eecb73f7252f1cc54d4 # v2025.11.30

View File

@@ -4,7 +4,7 @@ name: Stale
on: on:
schedule: schedule:
- cron: '0 8 * * *' # Every day at 08:00 - cron: "0 8 * * *" # Every day at 08:00
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:
@@ -23,4 +23,4 @@ jobs:
issues: write issues: write
pull-requests: write pull-requests: write
steps: steps:
- uses: ivuorinen/actions/stale@d3cc8d4790723db59c5e27d2e370fdad3663c7bd # 25.10.12 - uses: ivuorinen/actions/stale@fbbb487332f2b01379192eecb73f7252f1cc54d4 # v2025.11.30

View File

@@ -8,10 +8,10 @@ on:
- main - main
- master - master
paths: paths:
- '.github/labels.yml' - ".github/labels.yml"
- '.github/workflows/sync-labels.yml' - ".github/workflows/sync-labels.yml"
schedule: schedule:
- cron: '34 5 * * *' # Run every day at 05:34 AM UTC - cron: "34 5 * * *" # Run every day at 05:34 AM UTC
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:
merge_group: merge_group:
@@ -34,8 +34,8 @@ jobs:
steps: steps:
- name: ⤵️ Checkout Repository - name: ⤵️ Checkout Repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: ⤵️ Sync Latest Labels Definitions - name: ⤵️ Sync Latest Labels Definitions
uses: ivuorinen/actions/sync-labels@d3cc8d4790723db59c5e27d2e370fdad3663c7bd # 25.10.12 uses: ivuorinen/actions/sync-labels@fbbb487332f2b01379192eecb73f7252f1cc54d4 # v2025.11.30

View File

@@ -42,13 +42,13 @@ repos:
rev: v0.11.0 rev: v0.11.0
hooks: hooks:
- id: shellcheck - id: shellcheck
args: ['--severity=warning'] args: ["--severity=warning"]
- repo: https://github.com/rhysd/actionlint - repo: https://github.com/rhysd/actionlint
rev: v1.7.8 rev: v1.7.8
hooks: hooks:
- id: actionlint - id: actionlint
args: ['-shellcheck='] args: ["-shellcheck="]
- repo: https://github.com/renovatebot/pre-commit-hooks - repo: https://github.com/renovatebot/pre-commit-hooks
rev: 41.159.4 rev: 41.159.4
@@ -56,8 +56,8 @@ repos:
- id: renovate-config-validator - id: renovate-config-validator
- repo: https://github.com/bridgecrewio/checkov.git - repo: https://github.com/bridgecrewio/checkov.git
rev: '3.2.488' rev: "3.2.488"
hooks: hooks:
- id: checkov - id: checkov
args: args:
- '--quiet' - "--quiet"

3
.releaserc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": ["./index.cjs"]
}

1
.yarnrc.yml Normal file
View File

@@ -0,0 +1 @@
nodeLinker: node-modules

View File

@@ -7,80 +7,42 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @ivuorinen/semantic-release-config **Note:** Version bump only for package @ivuorinen/semantic-release-config
## 0.3.16 (2025-02-23) ## 0.3.16 (2025-02-23)
**Note:** Version bump only for package @ivuorinen/semantic-release-config **Note:** Version bump only for package @ivuorinen/semantic-release-config
## 0.3.15 (2025-02-23) ## 0.3.15 (2025-02-23)
### Bug Fixes ### Bug Fixes
* **deps:** update globals to 16.0.0 ([#342](https://github.com/ivuorinen/base-configs/issues/342)) ([04b333b](https://github.com/ivuorinen/base-configs/commit/04b333b445b6beb4344d2f9102bb5d3dc72ae26a)) - **deps:** update globals to 16.0.0 ([#342](https://github.com/ivuorinen/base-configs/issues/342)) ([04b333b](https://github.com/ivuorinen/base-configs/commit/04b333b445b6beb4344d2f9102bb5d3dc72ae26a))
## [0.3.14](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.13...@ivuorinen/semantic-release-config@0.3.14) (2025-02-17) ## [0.3.14](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.13...@ivuorinen/semantic-release-config@0.3.14) (2025-02-17)
**Note:** Version bump only for package @ivuorinen/semantic-release-config **Note:** Version bump only for package @ivuorinen/semantic-release-config
## [0.3.13](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.12...@ivuorinen/semantic-release-config@0.3.13) (2025-02-16) ## [0.3.13](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.12...@ivuorinen/semantic-release-config@0.3.13) (2025-02-16)
**Note:** Version bump only for package @ivuorinen/semantic-release-config **Note:** Version bump only for package @ivuorinen/semantic-release-config
## [0.3.12](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.11...@ivuorinen/semantic-release-config@0.3.12) (2025-02-16) ## [0.3.12](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.11...@ivuorinen/semantic-release-config@0.3.12) (2025-02-16)
**Note:** Version bump only for package @ivuorinen/semantic-release-config **Note:** Version bump only for package @ivuorinen/semantic-release-config
## [0.3.11](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.10...@ivuorinen/semantic-release-config@0.3.11) (2025-02-16) ## [0.3.11](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.10...@ivuorinen/semantic-release-config@0.3.11) (2025-02-16)
**Note:** Version bump only for package @ivuorinen/semantic-release-config **Note:** Version bump only for package @ivuorinen/semantic-release-config
## 0.3.10 (2025-01-17) ## 0.3.10 (2025-01-17)
### Bug Fixes ### Bug Fixes
* **deps:** update eslint-config-prettier to 10.0.1 ([#324](https://github.com/ivuorinen/base-configs/issues/324)) ([8a0d38e](https://github.com/ivuorinen/base-configs/commit/8a0d38e173df40b771d42b694a24145559200506)) - **deps:** update eslint-config-prettier to 10.0.1 ([#324](https://github.com/ivuorinen/base-configs/issues/324)) ([8a0d38e](https://github.com/ivuorinen/base-configs/commit/8a0d38e173df40b771d42b694a24145559200506))
## [0.3.9](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.8...@ivuorinen/semantic-release-config@0.3.9) (2024-12-07) ## [0.3.9](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/semantic-release-config@0.3.8...@ivuorinen/semantic-release-config@0.3.9) (2024-12-07)
**Note:** Version bump only for package @ivuorinen/semantic-release-config **Note:** Version bump only for package @ivuorinen/semantic-release-config
## 0.3.8 (2024-11-25) ## 0.3.8 (2024-11-25)
**Note:** Version bump only for package @ivuorinen/semantic-release-config **Note:** Version bump only for package @ivuorinen/semantic-release-config

View File

@@ -1,4 +1,4 @@
import ivuorinenConfig from '@ivuorinen/eslint-config'; import ivuorinenConfig from "@ivuorinen/eslint-config";
export default [ export default [
...ivuorinenConfig, ...ivuorinenConfig,
@@ -7,6 +7,6 @@ export default [
{ {
rules: { rules: {
// "no-unused-vars": "warn" // "no-unused-vars": "warn"
} },
} },
]; ];

View File

@@ -1,19 +1,19 @@
'use strict' "use strict";
module.exports = { module.exports = {
plugins: [ plugins: [
'@semantic-release/commit-analyzer', "@semantic-release/commit-analyzer",
'@semantic-release/release-notes-generator', "@semantic-release/release-notes-generator",
[ [
'@semantic-release/changelog', "@semantic-release/changelog",
{ {
changelogTitle: changelogTitle:
'# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.' "# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.",
} },
], ],
'@semantic-release/npm', "@semantic-release/npm",
'@semantic-release/github', "@semantic-release/github",
'@semantic-release/git' "@semantic-release/git",
], ],
preset: 'angular' preset: "angular",
} };

View File

@@ -43,10 +43,11 @@
"postinstall": "node scripts/postinstall.cjs" "postinstall": "node scripts/postinstall.cjs"
}, },
"dependencies": { "dependencies": {
"@ivuorinen/config-checker": "^1.1.12", "@ivuorinen/config-checker": "^1.1.13",
"@semantic-release/changelog": "^6", "@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10", "@semantic-release/git": "^10.0.1",
"semantic-release": "^25.0.0" "semantic-release": "^25.0.2"
}, },
"gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230" "gitHead": "23d15f15743fb59c1dbe658615ef2ed51c54d230",
"packageManager": "yarn@4.12.0+sha512.f45ab632439a67f8bc759bf32ead036a1f413287b9042726b7cc4818b7b49e14e9423ba49b18f9e06ea4941c1ad062385b1d8760a8d5091a1a31e5f6219afca8"
} }

View File

@@ -1,26 +1,30 @@
'use strict' "use strict";
/* eslint no-console: "off", n/no-process-exit: "off", no-undefined: "off" -- CLI app that gives users feedback */ /* eslint no-console: "off", n/no-process-exit: "off", no-undefined: "off" -- CLI app that gives users feedback */
const fs = require('node:fs') const fs = require("node:fs");
const path = require('node:path') const path = require("node:path");
// noinspection NpmUsedModulesInstalled // noinspection NpmUsedModulesInstalled
const process = require('node:process') const process = require("node:process");
const checkConfig = require('@ivuorinen/config-checker') const checkConfig = require("@ivuorinen/config-checker");
const foundConfig = checkConfig('release') const foundConfig = checkConfig("release");
if (foundConfig.length > 0) { if (foundConfig.length > 0) {
console.log('semantic-release-config: Found existing semantic-release config file, skipping creation.') console.log("semantic-release-config: Found existing semantic-release config file, skipping creation.");
console.log('semantic-release-config: If you want to create a new config file, please remove the existing one.') console.log("semantic-release-config: If you want to create a new config file, please remove the existing one.");
console.log(`semantic-release-config: Found config files at: ${foundConfig.join(', ')}`) console.log(`semantic-release-config: Found config files at: ${foundConfig.join(", ")}`);
process.exit(0) process.exit(0);
} }
const filePath = path.join(process.env.INIT_CWD, '.releaserc.json') const filePath = path.join(process.env.INIT_CWD || process.cwd(), ".releaserc.json");
const fileConfigObject = { const fileConfigObject = {
extends: ['@ivuorinen/semantic-release-config'] extends: ["@ivuorinen/semantic-release-config"],
} };
if (!fs.existsSync(filePath)) { try {
fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2)) fs.writeFileSync(filePath, JSON.stringify(fileConfigObject, undefined, 2), { flag: "wx" });
} catch (err) {
if (err.code !== "EEXIST") {
throw err;
}
} }

View File

@@ -1,2 +1,2 @@
import config from './index.cjs' import config from "./index.cjs";
export default config export default config;

7595
yarn.lock

File diff suppressed because it is too large Load Diff