Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22
26
8 changes: 5 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ with no account and no network; the end-to-end tests use it.
| Tests | Vitest + Testing Library (jsdom), Playwright + `@axe-core/playwright`, `cargo test` |
| CI/CD | GitHub Actions: CI, desktop installers, tagged releases, CodeQL, PR labels (see Testing) |

Node 22.12+ (`.nvmrc`), npm with exact versions (`.npmrc` `save-exact`).
Node 26+ (`.nvmrc`; the long-term-support line until April 2029), npm with exact versions
(`.npmrc` `save-exact`).

## Commands

Expand Down Expand Up @@ -809,8 +810,9 @@ label)` (axe WCAG 2.2 A/AA, no serious or critical violations), `enterDemo`, `se
version (`scripts/set-version.mjs --check`, and that a full release is on `main`), calls
`ci.yml` and `desktop.yml`, packages the files with `SHA256SUMS.txt` and publishes a GitHub
Release with generated notes, creating the tag on the commit when it doesn't exist. The
"release tags" ruleset must let GitHub Actions create `v*` tags for that (RELEASING.md,
One-time set-up); otherwise the release is left as a draft for an admin to publish. Changes
"release tags" ruleset must not restrict creating `v*` tags for that (RELEASING.md,
One-time set-up: a personal repository's ruleset can't list GitHub Actions as a bypass
actor); otherwise the release is left as a draft for an admin to publish. Changes
to it run a dry run.
- `codeql.yml`: code scanning for TypeScript, Rust and the workflows.
- `labeler.yml`: labels pull requests by files (`.github/labeler.yml`) and title type; the
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Everyone taking part is expected to follow the [Code of Conduct](CODE_OF_CONDUCT

## Set up

You need [Node.js](https://nodejs.org/) 22.12 or newer and npm; for the desktop app, also
You need [Node.js](https://nodejs.org/) 26 or newer and npm; for the desktop app, also
[Rust](https://rustup.rs/) 1.92 or newer and your system's Tauri prerequisites (the packages for
Windows, macOS and each Linux family are listed in
[docs/DEVELOPMENT.md](docs/DEVELOPMENT.md#prerequisites)). Then:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ into the computer_ → **Minimized**. More in the [user guide](docs/GUIDE.md).

## Build from source

You need [Node.js](https://nodejs.org/) 22.12 or newer, and for the desktop app
You need [Node.js](https://nodejs.org/) 26 or newer, and for the desktop app
[Rust](https://rustup.rs/) plus the [Tauri prerequisites](https://v2.tauri.app/start/prerequisites/)
for your system ([docs/DEVELOPMENT.md](docs/DEVELOPMENT.md#prerequisites) lists them).

Expand Down
4 changes: 2 additions & 2 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ requests, [CONTRIBUTING.md](../CONTRIBUTING.md).
**For the web app** (most of the work: every page, the player, lyrics, stats):

- [Git](https://git-scm.com/)
- [Node.js](https://nodejs.org/) **22.12 or newer**, with npm. `.nvmrc` names the version, so
`nvm use` or `fnm use` picks it.
- [Node.js](https://nodejs.org/) **26 or newer** (the current long-term-support release), with
npm. `.nvmrc` names the version, so `nvm use` or `fnm use` picks it.

**For the desktop app**, also:

Expand Down
21 changes: 11 additions & 10 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,24 @@ A full release's tag must be on `main`; a pre-release's may be on any branch.

### One-time set-up: let GitHub Actions tag releases

The repository's **release tags** ruleset lets only admins create, move or delete `v*` tags. A
release from a merge is tagged by GitHub Actions, so the ruleset has to let it do that too, or
the pipeline stops with the release ready as a **draft** (publishing it from the Releases page, as
an admin, creates the tag). To allow it, add GitHub Actions to the ruleset's bypass list, once,
with an admin's `gh`:
The repository's **release tags** ruleset protects `v*` tags. A release from a merge is tagged by
GitHub Actions, so the ruleset must not stop it creating one, or the pipeline stops with the
release ready as a **draft** (publishing it from the Releases page, as an admin, creates the tag).
A ruleset can only name GitHub Actions in its bypass list in an organization's repository, so in
a personal one the ruleset keeps tags from being moved or deleted, and leaves creating them to
anyone who can push. Once, with an admin's `gh`, drop its "creation" rule:

```bash
repo=Kkkermit/Spotify-Stats
id=$(gh api "repos/$repo/rulesets" --jq '.[] | select(.name == "release tags") | .id')
gh api "repos/$repo/rulesets/$id" --jq '{name, target, enforcement, conditions, rules,
bypass_actors: (.bypass_actors + [{actor_id: 15368, actor_type: "Integration", bypass_mode: "always"}])}' \
gh api "repos/$repo/rulesets/$id" --jq '{name, target, enforcement, conditions, bypass_actors,
rules: [.rules[] | select(.type != "creation")]}' \
| gh api -X PUT "repos/$repo/rulesets/$id" --input -
```

(15368 is the GitHub Actions app.) Tags still can't be moved or deleted by anyone else, and only
workflows running this repository's own code on `main`, a tag or a feature branch hold a token
that can write; pull requests from forks don't.
A published tag still can't be moved or deleted. Only people with write access, and workflows
running this repository's own code on `main`, a tag or a feature branch, can create tags;
pull requests from forks get a read-only token.

### What a release contains

Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "statsify",
"private": true,
"version": "1.1.0",
"version": "1.1.1",
"description": "Your Spotify listening stats, library and player in one place. Web app and Windows/macOS/Linux desktop app (Tauri).",
"keywords": [
"spotify",
Expand All @@ -25,7 +25,7 @@
"license": "Apache-2.0",
"type": "module",
"engines": {
"node": ">=22.12.0"
"node": ">=26.0.0"
},
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spotify-stats"
version = "1.1.0"
version = "1.1.1"
description = "Statsify: your listening stats, library and player controls on the desktop."
authors = ["Kkkermit"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Statsify",
"version": "1.1.0",
"version": "1.1.1",
"identifier": "com.kkkermit.spotifystats",
"build": {
"beforeDevCommand": "npm run dev",
Expand Down
Loading