clavarium 0.2.35-next.1 → 0.2.35-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -468,9 +468,11 @@ export class Updater {
468
468
  const repository = statement.predicate?.buildDefinition?.externalParameters?.workflow?.repository;
469
469
  if (repository !== REPOS[name]) throw new Error(`${name}@${version} was built from ${repository ?? 'an unknown place'}, not ${REPOS[name]}`);
470
470
  /* And from the branch its kind of version comes from (publish.yml): a version for everybody
471
- from main only; one to try from next (or main, as before there was a next). */
471
+ from main only; a -beta.N from beta; any other version to try from next (or main). */
472
472
  const ref = statement.predicate?.buildDefinition?.externalParameters?.workflow?.ref;
473
- const branches = version.includes('-') ? ['refs/heads/next', 'refs/heads/main'] : ['refs/heads/main'];
473
+ const branches = /-beta\.\d/.test(version) ? ['refs/heads/beta', 'refs/heads/main']
474
+ : version.includes('-') ? ['refs/heads/next', 'refs/heads/main']
475
+ : ['refs/heads/main'];
474
476
  if (!branches.includes(ref)) throw new Error(`${name}@${version} was built from ${ref ?? 'an unknown branch'}: a version ${version.includes('-') ? 'to try' : 'for everybody'} comes from ${branches.join(' or ')}`);
475
477
  }
476
478
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.35-next.1",
3
+ "version": "0.2.35-next.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.35-next.1",
9
+ "version": "0.2.35-next.2",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.35-next.1",
3
+ "version": "0.2.35-next.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",