Skip to content

Commit 57779ff

Browse files
authored
feat: upgrade dependencies (#24)
1 parent 2157a5e commit 57779ff

26 files changed

+3863
-23300
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
* @skyleague/oss
2-
package-lock.json
1+
* @skyleague/oss

.github/workflows/package.yml

Lines changed: 71 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,94 @@ name: Typescript Package CI
22

33
on:
44
push:
5-
branches:
6-
- main
5+
branches: [main]
76
pull_request:
8-
types:
9-
- opened
10-
- synchronize
7+
types: [opened, synchronize]
118
workflow_dispatch:
129
inputs:
1310
beta_release:
1411
description: Create beta release
15-
required: true
1612
type: boolean
13+
default: false
14+
required: false
15+
16+
env:
17+
NODE_VERSION: '22'
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && 'main' || github.head_ref }}
21+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1722

1823
jobs:
1924
optimize_ci:
2025
runs-on: ubuntu-latest
2126
outputs:
2227
skip: ${{ steps.check_skip.outputs.skip }}
2328
steps:
24-
- name: Optimize CI
29+
- uses: withgraphite/graphite-ci-action@main
2530
id: check_skip
26-
uses: withgraphite/graphite-ci-action@main
2731
with:
2832
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
2933

30-
typescript:
31-
needs: [optimize_ci]
34+
validate:
35+
needs: optimize_ci
3236
if: needs.optimize_ci.outputs.skip == 'false'
33-
uses: skyleague/node-standards/.github/workflows/reusable-typescript.yml@main
34-
secrets:
35-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
runs-on: ubuntu-latest
38+
outputs:
39+
artifact-name: build-artifacts
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version: ${{ env.NODE_VERSION }}
45+
cache: 'npm'
46+
47+
- run: npm ci --ignore-scripts
48+
env:
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
51+
- run: node --run lint
52+
- run: node --run check:project
53+
- run: node --run check:types
54+
- run: node --run check:coverage
55+
- run: node --run build
56+
57+
- uses: actions/upload-artifact@v4
58+
with:
59+
name: build-artifacts
60+
path: .dist
61+
compression-level: 9
62+
include-hidden-files: true
3663

3764
release:
38-
needs: [typescript,optimize_ci]
39-
if: needs.optimize_ci.outputs.skip == 'false'
40-
uses: skyleague/node-standards/.github/workflows/reusable-release.yml@main
41-
with:
42-
build_artifact_name: ${{ needs.typescript.outputs.artifact-name }}
43-
beta_release: ${{ inputs.beta_release || false }}
44-
secrets:
45-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65+
needs: validate
66+
if: |
67+
needs.optimize_ci.outputs.skip == 'false' &&
68+
github.ref == 'refs/heads/main'
69+
runs-on: ubuntu-latest
70+
permissions:
71+
contents: write
72+
issues: write
73+
pull-requests: write
74+
packages: write
75+
id-token: write
76+
steps:
77+
- uses: actions/checkout@v4
78+
- uses: actions/download-artifact@v4
79+
with:
80+
name: ${{ needs.validate.outputs.artifact-name }}
81+
path: .dist
82+
- uses: actions/setup-node@v4
83+
with:
84+
node-version: ${{ env.NODE_VERSION }}
85+
cache: 'npm'
86+
87+
- run: npm ci --ignore-scripts
88+
env:
89+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
90+
91+
- run: npx semantic-release
92+
env:
93+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
BETA_RELEASE: ${{ inputs.beta_release }}

.vscode/settings.json

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,10 @@
11
{
2-
"debug.javascript.terminalOptions": {
3-
"remoteRoot": null,
4-
"skipFiles": ["<node_internals>/**"],
5-
"sourceMaps": true
6-
},
72
"editor.codeActionsOnSave": {
8-
"source.organizeImports.biome": "explicit",
9-
"quickfix.biome": "explicit"
3+
"source.fixAll.biome": "explicit",
4+
"source.organizeImports.biome": "explicit"
105
},
116
"editor.defaultFormatter": "biomejs.biome",
127
"editor.formatOnSave": true,
13-
"editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",
14-
"files.eol": "\n",
15-
"files.exclude": {
16-
"**/.coverage": true,
17-
"**/.dist": true,
18-
"**/.DS_Store": true,
19-
"**/.git": true,
20-
"**/.hg": true,
21-
"**/.husky": true,
22-
"**/.svn": true,
23-
"**/CVS": true,
24-
"**/node_modules": true
25-
},
26-
"files.watcherExclude": {
27-
"**/.coverage/*/**": true,
28-
"**/.dist/**": true,
29-
"**/.git/objects/**": true,
30-
"**/.git/subtree-cache/**": true,
31-
"**/node_modules/*/**": true,
32-
"src/**/*.d.ts": true
33-
},
34-
"typescript.implementationsCodeLens.enabled": true,
358
"typescript.preferences.autoImportFileExcludePatterns": ["**/index.ts"],
36-
"typescript.referencesCodeLens.enabled": true,
37-
"typescript.tsdk": "./node_modules/typescript/lib",
389
"typescript.enablePromptUseWorkspaceTsdk": true
3910
}

biome.json

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,79 @@
11
{
2-
"extends": ["@skyleague/node-standards/biome"]
2+
"vcs": { "clientKind": "git", "enabled": true, "useIgnoreFile": true },
3+
"files": {
4+
"ignoreUnknown": true
5+
},
6+
"formatter": {
7+
"includes": ["**", "!**/sst-env.d.ts", "!**/*.schema.js"],
8+
"enabled": true,
9+
"indentStyle": "space",
10+
"indentWidth": 4,
11+
"lineWidth": 130
12+
},
13+
"assist": {
14+
"actions": {
15+
"source": {
16+
"organizeImports": "on"
17+
}
18+
}
19+
},
20+
"linter": {
21+
"includes": ["**", "!**/sst-env.d.ts", "!**/*.schema.js"],
22+
"enabled": true,
23+
"domains": {
24+
"test": "recommended"
25+
},
26+
"rules": {
27+
"recommended": true,
28+
"style": {
29+
"noNamespace": "error",
30+
"useForOf": "error",
31+
"noParameterProperties": "error",
32+
"useBlockStatements": "error",
33+
"useShorthandAssign": "error",
34+
"useConsistentArrayType": {
35+
"level": "error",
36+
"options": {
37+
"syntax": "shorthand"
38+
}
39+
}
40+
},
41+
"suspicious": {
42+
"useAwait": "error",
43+
"noEvolvingTypes": "error"
44+
},
45+
"correctness": {
46+
"noUnusedVariables": "error",
47+
"noUnusedImports": "error",
48+
"useHookAtTopLevel": "error"
49+
}
50+
}
51+
},
52+
"javascript": {
53+
"formatter": {
54+
"semicolons": "asNeeded",
55+
"arrowParentheses": "always",
56+
"quoteStyle": "single"
57+
}
58+
},
59+
"json": {
60+
"formatter": {
61+
"indentWidth": 2
62+
}
63+
},
64+
"overrides": [
65+
{
66+
"includes": ["**/*.spec.ts"],
67+
"linter": {
68+
"rules": {
69+
"style": {
70+
"noNonNullAssertion": "off"
71+
},
72+
"suspicious": {
73+
"noExplicitAny": "off"
74+
}
75+
}
76+
}
77+
}
78+
]
379
}

0 commit comments

Comments
 (0)