Skip to content

Commit

Permalink
fix: classmap version & workflow event trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Delusoire committed Jul 2, 2024
1 parent 1888a07 commit f452f00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish
on:
push:
tags:
- "v*.*.*"
- "*"

jobs:
publish:
Expand Down
6 changes: 4 additions & 2 deletions scripts/classmap-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ async function parseGhRawUrl(rawUrl: string) {
throw new Error(`Invalid path: ${path}`);
}
const { version, timestamp } = pathMatch.groups!;

const versionSemver = `${version[0]}.${version.slice(1, 3)}.${version.slice(3, 7)}`;
const M = Number(version[0]);
const m = Number(version.slice(1, 3));
const p = Number(version.slice(3, 7));
const versionSemver = `${M}.${m}.${p}`;
const timestampDecimal = Number.parseInt(timestamp, 16);

return {
Expand Down

0 comments on commit f452f00

Please sign in to comment.