Skip to content

Commit b9e02e9

Browse files
authored
Merge pull request #826 from nod-ai/staging/v0.4.0
Release v0.4.0
2 parents e3134ab + a890257 commit b9e02e9

File tree

368 files changed

+7240
-3700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

368 files changed

+7240
-3700
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Track Release
3+
about: Track progress leading to the next release
4+
title: 'chore(version): release v#.#.#'
5+
labels: chore
6+
type: Task
7+
assignees: bjacobgordon
8+
9+
---
10+
11+
### Checkpoints
12+
13+
- [ ] create `staging/v#.#.#` branch off of `integration`
14+
- [ ] open PR for branch: ?
15+
- [ ] perform QA, listing issues below
16+
- [ ] [draft release entry](https://github.com/nod-ai/shark-ui/releases/new): ?
17+
- [ ] bundle package
18+
- [ ] add package to release notes
19+
- [ ] merge into [releases](https://github.com/nod-ai/shark-ui/tree/release)
20+
- [ ] tag: ?
21+
- [ ] merge tag into [integration](https://github.com/nod-ai/shark-ui/tree/integration)
22+
- [ ] submit release draft
23+
- [ ] update [template](https://github.com/nod-ai/shark-ui/blob/integration/.github/ISSUE_TEMPLATE/track-release.md), if needed
24+
25+
### Problems
26+
27+
Edit this description to add new ones.
28+
29+
- [ ] ?

.github/workflows/dependabot.yml

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ permissions:
77

88
jobs:
99
auto-merge:
10+
name: Merge sanctioned dependency-bump PRs automatically
1011
runs-on: ubuntu-latest
1112
if: |
1213
(github.event.pull_request.user.login == 'dependabot[bot]') &&
1314
(!github.event.pull_request.head.repo.fork)
15+
env:
16+
PR_URL: ${{ github.event.pull_request.html_url }}
17+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1418
steps:
1519
- name: Fetch metadata
1620
id: metadata
@@ -22,6 +26,37 @@ jobs:
2226
(steps.metadata.outputs.update-type == 'version-update:semver-patch') ||
2327
(steps.metadata.outputs.update-type == 'version-update:semver-minor')
2428
run: gh pr merge --squash --auto "$PR_URL"
25-
env:
26-
PR_URL: ${{ github.event.pull_request.html_url }}
27-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
- name: 'Approve select dependencies for bump: patch'
30+
if: |
31+
contains(
32+
fromJSON('[
33+
"vue-tsc"
34+
]'),
35+
steps.metadata.outputs.dependency-names
36+
)
37+
&& (steps.metadata.outputs.update-type == 'version-update:semver-patch')
38+
run: gh pr review --approve "$PR_URL"
39+
- name: 'Approve select dependencies for bump: patch, minor'
40+
if: |
41+
contains(
42+
fromJSON('[
43+
"@eslint/markdown",
44+
"@stylistic/eslint-plugin",
45+
"@typescript-eslint/parser",
46+
"@types/node",
47+
"cypress",
48+
"eslint",
49+
"eslint-plugin-cypress",
50+
"eslint-plugin-vue",
51+
"typescript-eslint",
52+
"typescript",
53+
"vite",
54+
"vite-plugin-vue-devtools"
55+
]'),
56+
steps.metadata.outputs.dependency-names
57+
)
58+
&& (
59+
(steps.metadata.outputs.update-type == 'version-update:semver-patch') ||
60+
(steps.metadata.outputs.update-type == 'version-update:semver-minor')
61+
)
62+
run: gh pr review --approve "$PR_URL"

.github/workflows/docs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- integration
7+
- release
8+
pull_request:
9+
branches:
10+
- integration
11+
- release
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Check for changes to doc files
19+
uses: tj-actions/changed-files@v46
20+
id: changed-files
21+
with:
22+
files: '**/*.md'
23+
separator: ','
24+
- name: Lint the updated Markdown files
25+
id: lint-markdown-files
26+
uses: DavidAnson/markdownlint-cli2-action@v20
27+
if: steps.changed-files.outputs.any_changed == 'true'
28+
with:
29+
config: .markdownlint-cli2.yaml
30+
globs: ${{ steps.changed-files.outputs.all_changed_files }}
31+
separator: ','
32+
continue-on-error: true
33+
- name: If linter failed, highlight debug tools
34+
if: steps.lint-markdown-files.outcome == 'failure'
35+
run: |
36+
echo "::notice::Run \`npm run lint:docs\` in your dev environment to see which issues aren't automatically fixable."
37+
exit 1

.github/workflows/node.yml

Lines changed: 50 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,66 +4,81 @@ on:
44
push:
55
branches:
66
- integration
7-
paths:
8-
- '.github/workflows/node.yml' # Trigger workflow when it's modified
9-
- 'package.json' # For dependency changes
10-
- '**/*.js' # For scripts
11-
- '**/*.ts' # For scripts
12-
- '**/*.cjs' # For scripts
13-
- '**/*.cts' # For scripts
14-
- '**/*.mjs' # For scripts
15-
- '**/*.mts' # For scripts
16-
- '**/*.jsx' # For scripts
17-
- '**/*.tsx' # For scripts
18-
- '**/*.vue' # For single-file components that contain a script block
19-
- '!**/*.md' # Ignore markdown files (and their constituent fenced code blocks)
20-
- '!docs/**' # Ignore docs folder
7+
- release
218
pull_request:
229
branches:
2310
- integration
24-
paths:
25-
- '.github/workflows/node.yml' # Trigger workflow when it's modified
26-
- 'package.json' # For dependency changes
27-
- '**/*.js' # For scripts
28-
- '**/*.ts' # For scripts
29-
- '**/*.cjs' # For scripts
30-
- '**/*.cts' # For scripts
31-
- '**/*.mjs' # For scripts
32-
- '**/*.mts' # For scripts
33-
- '**/*.jsx' # For scripts
34-
- '**/*.tsx' # For scripts
35-
- '**/*.vue' # For single-file components that contain a script block
36-
- '!**/*.md' # Ignore markdown files (and their constituent fenced code blocks)
37-
- '!docs/**' # Ignore docs folder
11+
- release
3812

3913
jobs:
4014
analyze:
4115
runs-on: ubuntu-latest
42-
name: Lint and compile via package.json
16+
name: Lint, Compile, Build, and Test
4317
steps:
4418
- uses: actions/checkout@v4
19+
- name: Check for changes to this workflow, dependencies, scripts, and single-file components
20+
uses: tj-actions/changed-files@v46
21+
id: changed-files
22+
with:
23+
files: |
24+
.github/workflows/node.yml
25+
package.json
26+
package-lock.json
27+
**/*.js
28+
**/*.ts
29+
**/*.cjs
30+
**/*.cts
31+
**/*.mjs
32+
**/*.mts
33+
**/*.jsx
34+
**/*.tsx
35+
**/*.vue
4536
- name: Set up Node.js
37+
if: steps.changed-files.outputs.any_changed == 'true'
4638
uses: actions/setup-node@v4
4739
with:
4840
cache: 'npm'
49-
- name: Install all dependencies (which includes linters)
41+
- name: Install all dependencies
42+
if: steps.changed-files.outputs.any_changed == 'true'
5043
run: npm clean-install
51-
- name: Run the linter
44+
- name: Try to pass linter
45+
if: steps.changed-files.outputs.any_changed == 'true'
5246
id: lint
5347
run: npx eslint . --max-warnings 0 --cache
5448
continue-on-error: true
55-
- name: If linter fails, highlight debug tools
49+
- name: If linting fails, highlight debug tools
5650
if: steps.lint.outcome == 'failure'
5751
run: |
5852
echo "::notice::Enable lint-on-save in your editor for automatic fixes"
5953
echo "::notice::Run \`npm run lint\` in your dev environment for details about issues that aren't automatically fixable"
6054
exit 1
61-
- name: Run the compiler
55+
- name: Try to pass compiler
56+
if: steps.changed-files.outputs.any_changed == 'true'
6257
id: compile
63-
run: npx vue-tsc --build
58+
run: npm run type-check
6459
continue-on-error: true
6560
- name: If compilation fails, highlight debug tools
6661
if: steps.compile.outcome == 'failure'
6762
run: |
68-
echo "::notice::Run \`npx vue-tsc --build\` in your dev environment for details about compiler issues"
63+
echo "::notice::Run \`npm run type-check\` in your dev environment for details about compiler issues"
64+
exit 1
65+
- name: Try to build for production # "Build" in this context means "transpile, minify, tree-shake, and bundle"
66+
if: steps.changed-files.outputs.any_changed == 'true'
67+
id: build
68+
run: npm run build-only
69+
continue-on-error: true
70+
- name: If building fails, highlight debug tools
71+
if: steps.build.outcome == 'failure'
72+
run: |
73+
echo "::notice::Run \`npm run build-only\` in your dev environment for a detailed report about build failures"
6974
exit 1
75+
- name: Try to pass all unit tests
76+
if: steps.changed-files.outputs.any_changed == 'true'
77+
id: test_units
78+
run: npm run test:unit
79+
continue-on-error: true
80+
- name: If unit tests fail, highlight debug tools
81+
if: steps.test_units.outcome == 'failure'
82+
run: |
83+
echo "::notice::Run \`npm run test:unit\` in your dev environment for a detailed report about failed unit tests"
84+
exit 1

.markdownlint-cli2.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
config:
2+
line-length: false
3+
gitignore: true

.vscode/settings.json

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
11
{
22
"cSpell.words": [
3-
"cofactor",
4-
"concatenatable",
5-
"Flaggable",
63
"SDXL",
7-
"Shortfin",
84
"stabilityai",
95
"vite",
106
"vuetify"
117
],
8+
"cSpell.customDictionaries": {
9+
"library/Attempt": {
10+
"name": "library/Attempt",
11+
"path": "./src/library/Attempt/dictionary.txt",
12+
"description": "Words introduced by the @/library/Attempt module",
13+
"addWords": false
14+
},
15+
"library/math": {
16+
"name": "library/math",
17+
"path": "./src/library/math/dictionary.txt",
18+
"description": "Words introduced by the @/library/math module",
19+
"addWords": false
20+
},
21+
"library/Shortfin": {
22+
"name": "library/Shortfin",
23+
"path": "./src/library/Shortfin/dictionary.txt",
24+
"description": "Words introduced by the @/library/Shortfin module",
25+
"addWords": false
26+
},
27+
},
1228
"editor.codeActionsOnSave": {
1329
"source.fixAll": "explicit",
1430
},
@@ -28,6 +44,7 @@
2844
],
2945
"explorer.fileNesting.enabled": true,
3046
"explorer.fileNesting.patterns": {
47+
"*.ts": "${capture}.test.ts",
3148
"tsconfig.json": "tsconfig.*.json",
3249
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*, env.d.ts",
3350
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*",

0 commit comments

Comments
 (0)