Skip to content

Commit

Permalink
Merge pull request #163 from dkershner6/DAK/majorReleaseTag2
Browse files Browse the repository at this point in the history
feat: another attempt at majorVersion release
  • Loading branch information
dkershner6 authored Dec 30, 2023
2 parents 2f3ffeb + 007d821 commit f105017
Show file tree
Hide file tree
Showing 14 changed files with 1,773 additions and 108 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml

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

4 changes: 4 additions & 0 deletions .projen/deps.json

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

20 changes: 17 additions & 3 deletions .projen/tasks.json

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

32 changes: 31 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { JobPermission } from "projen/lib/github/workflows-model";
import { NodePackageManager } from "projen/lib/javascript";
import {
GitHubActionTypeScriptProject,
RunsUsing,
} from "projen-github-action-typescript";

const MAJOR_VERSION = 2;

const project = new GitHubActionTypeScriptProject({
packageManager: NodePackageManager.PNPM,
minNodeVersion: "20.10.0",

majorVersion: 2,
majorVersion: MAJOR_VERSION,
defaultReleaseBranch: "main",

devDeps: ["projen-github-action-typescript"],
Expand Down Expand Up @@ -53,6 +56,33 @@ const project = new GitHubActionTypeScriptProject({
autoApproveOptions: {
allowedUsernames: ["dkershner6"],
},

sampleCode: false,
docgen: true,
});

const releaseWorkflow = project.github?.tryFindWorkflow("release");
if (releaseWorkflow) {
releaseWorkflow.addJob("major-release", {
runsOn: ["ubuntu-latest"],
needs: ["release_github"],
permissions: {
contents: JobPermission.WRITE,
},
steps: [
{
uses: "actions/checkout@v3",
},
{
uses: "ncipollo/release-action@v1",
with: {
generateReleaseNotes: true,
tag: `v${MAJOR_VERSION}`,
token: "${{ secrets.GITHUB_TOKEN }}",
},
},
],
});
}

project.synth();
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
78 changes: 78 additions & 0 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
:root {
--light-hl-0: #000000;
--dark-hl-0: #D4D4D4;
--light-hl-1: #800000;
--dark-hl-1: #569CD6;
--light-hl-2: #0000FF;
--dark-hl-2: #CE9178;
--light-hl-3: #008000;
--dark-hl-3: #6A9955;
--light-hl-4: #098658;
--dark-hl-4: #B5CEA8;
--light-hl-5: #A31515;
--dark-hl-5: #CE9178;
--light-hl-6: #0000FF;
--dark-hl-6: #569CD6;
--light-hl-7: #0070C1;
--dark-hl-7: #4FC1FF;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}

@media (prefers-color-scheme: light) { :root {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--code-background: var(--light-code-background);
} }

@media (prefers-color-scheme: dark) { :root {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--code-background: var(--dark-code-background);
} }

:root[data-theme='light'] {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--code-background: var(--light-code-background);
}

:root[data-theme='dark'] {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--code-background: var(--dark-code-background);
}

.hl-0 { color: var(--hl-0); }
.hl-1 { color: var(--hl-1); }
.hl-2 { color: var(--hl-2); }
.hl-3 { color: var(--hl-3); }
.hl-4 { color: var(--hl-4); }
.hl-5 { color: var(--hl-5); }
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
pre, code { background: var(--code-background); }
59 changes: 59 additions & 0 deletions docs/assets/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/navigation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA4uOBQApu0wNAgAAAA=="
1 change: 1 addition & 0 deletions docs/assets/search.js

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

Loading

0 comments on commit f105017

Please sign in to comment.