File tree Expand file tree Collapse file tree 13 files changed +117
-23
lines changed Expand file tree Collapse file tree 13 files changed +117
-23
lines changed Original file line number Diff line number Diff line change
1
+ # Folders
2
+ .git
3
+ .github
4
+ .vscode
5
+ dist
6
+ docs
7
+ node_modules
8
+
9
+ # Files
1
10
.dockerignore
2
11
.editorconfig
3
12
.eslintignore
4
13
.eslintrc.yaml
5
- .git
6
- .github
7
14
.gitignore
8
15
.prettierignore
9
16
.prettierrc.yaml
10
- .vscode
11
17
* .md
12
18
* .test.ts
13
19
* .tsbuildinfo
14
20
* .txt
15
- dist
16
21
Dockerfile
17
- docs
18
- node_modules
19
22
tsconfig.eslint.json
20
23
typedoc.json
Original file line number Diff line number Diff line change
1
+ .pnpm-store /
1
2
dist /
2
3
docs /
3
4
node_modules /
Original file line number Diff line number Diff line change @@ -15,7 +15,28 @@ parserOptions:
15
15
plugins :
16
16
- " @typescript-eslint"
17
17
rules :
18
+ " @typescript-eslint/class-methods-use-this " : error
19
+ " @typescript-eslint/consistent-type-exports " : error
18
20
" @typescript-eslint/consistent-type-imports " :
19
21
- error
20
22
- fixStyle : separate-type-imports
23
+ " @typescript-eslint/default-param-last " : error
24
+ " @typescript-eslint/explicit-member-accessibility " :
25
+ - error
26
+ - accessibility : no-public
27
+ " @typescript-eslint/method-signature-style " : error
28
+ " @typescript-eslint/no-import-type-side-effects " : error
29
+ " @typescript-eslint/no-unnecessary-qualifier " : error
30
+ " @typescript-eslint/no-useless-empty-export " : error
31
+ " @typescript-eslint/prefer-nullish-coalescing " :
32
+ - error
33
+ - ignorePrimitives : true
34
+ " @typescript-eslint/prefer-readonly " : error
35
+ " @typescript-eslint/prefer-regexp-exec " : error
36
+ " @typescript-eslint/promise-function-async " :
37
+ - error
38
+ - checkArrowFunctions : false
39
+ " @typescript-eslint/require-array-sort-compare " : error
40
+ " @typescript-eslint/return-await " : error
41
+ " @typescript-eslint/sort-type-constituents " : error
21
42
" @typescript-eslint/switch-exhaustiveness-check " : error
Original file line number Diff line number Diff line change
1
+ name : Docker
2
+
3
+ on :
4
+ push :
5
+ branches : main
6
+ tags : v*
7
+ pull_request :
8
+ branches : main
9
+
10
+ jobs :
11
+ docker :
12
+ runs-on : ubuntu-latest
13
+
14
+ if : github.actor != 'nektos/act'
15
+
16
+ permissions :
17
+ packages : write
18
+ contents : read
19
+
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+
23
+ - uses : docker/login-action@v3
24
+ if : github.actor != 'dependabot[bot]'
25
+ with :
26
+ username : ${{ vars.DOCKER_USERNAME }}
27
+ password : ${{ secrets.DOCKER_PASSWORD }}
28
+
29
+ - uses : docker/login-action@v3
30
+ if : github.actor != 'dependabot[bot]'
31
+ with :
32
+ registry : ghcr.io
33
+ username : ${{ github.actor }}
34
+ password : ${{ secrets.GITHUB_TOKEN }}
35
+
36
+ - id : meta
37
+ uses : docker/metadata-action@v5
38
+ with :
39
+ images : |
40
+ natoboram/gigachad.ts
41
+ ghcr.io/${{ github.repository }}
42
+ tags : |
43
+ type=ref,event=tag
44
+ type=semver,pattern={{major}}
45
+ type=semver,pattern={{major}}.{{minor}}
46
+ type=semver,pattern={{major}}.{{minor}}.{{patch}}
47
+ type=semver,pattern={{version}}
48
+
49
+ - uses : docker/build-push-action@v5
50
+ with :
51
+ context : .
52
+ push : ${{ github.ref_type == 'tag' }}
53
+ tags : ${{ steps.meta.outputs.tags }}
54
+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 8
8
build_pages :
9
9
runs-on : ubuntu-latest
10
10
11
+ if : github.actor != 'nektos/act'
12
+
11
13
steps :
12
- - uses : actions/checkout@v3
14
+ - uses : actions/checkout@v4
13
15
- uses : pnpm/action-setup@v2
14
16
with :
15
17
version : latest
16
- - uses : actions/setup-node@v3
18
+ - uses : actions/setup-node@v4
17
19
with :
18
20
node-version : 21
19
21
cache : pnpm
20
- - run : pnpm install --frozen-lockfile
22
+ - run : pnpm install
21
23
- run : pnpm run docs
22
- - uses : actions/upload-pages-artifact@v1
24
+ - uses : actions/upload-pages-artifact@v3
23
25
with :
24
26
path : docs
25
27
37
39
runs-on : ubuntu-latest
38
40
39
41
steps :
40
- - uses : actions/deploy-pages@v1
41
- id : deployment
42
+ - id : deployment
43
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
13
13
steps :
14
- - uses : actions/checkout@v3
14
+ - uses : actions/checkout@v4
15
15
- uses : pnpm/action-setup@v2
16
16
with :
17
17
version : latest
18
- - uses : actions/setup-node@v3
18
+ - uses : actions/setup-node@v4
19
19
with :
20
20
node-version : 21
21
21
cache : pnpm
Original file line number Diff line number Diff line change @@ -13,27 +13,29 @@ jobs:
13
13
contents : read
14
14
packages : write
15
15
16
+ if : github.actor != 'nektos/act'
17
+
16
18
steps :
17
- - uses : actions/checkout@v3
19
+ - uses : actions/checkout@v4
18
20
- uses : pnpm/action-setup@v2
19
21
with :
20
22
version : latest
21
- - uses : actions/setup-node@v3
23
+ - uses : actions/setup-node@v4
22
24
with :
23
25
cache : pnpm
24
26
node-version : 21
25
- - run : pnpm install --frozen-lockfile
27
+ - run : pnpm install
26
28
- run : pnpm build
27
29
28
- - uses : actions/setup-node@v3
30
+ - uses : actions/setup-node@v4
29
31
with :
30
32
registry-url : https://npm.pkg.github.com
31
33
scope : " @natoboram"
32
34
- run : pnpm publish --access public --no-git-checks
33
35
env :
34
36
NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
37
36
- - uses : actions/setup-node@v3
38
+ - uses : actions/setup-node@v4
37
39
with :
38
40
registry-url : https://registry.npmjs.org
39
41
scope : " @natoboram"
Original file line number Diff line number Diff line change 9
9
permissions :
10
10
contents : write
11
11
12
+ if : github.actor != 'nektos/act' && github.ref_name == 'main'
13
+
12
14
steps :
13
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
14
16
with :
15
17
ssh-key : ${{ secrets.SIGNING_KEY_PRIVATE }}
16
18
- uses : pnpm/action-setup@v2
17
19
with :
18
20
version : latest
19
- - uses : actions/setup-node@v3
21
+ - uses : actions/setup-node@v4
20
22
with :
21
23
cache : pnpm
22
24
node-version : 21
@@ -25,14 +27,17 @@ jobs:
25
27
git config user.name 'github-actions[bot]'
26
28
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
27
29
30
+ git config commit.gpgsign true
28
31
git config gpg.format ssh
29
32
git config user.signingkey 'key::${{ vars.SIGNING_KEY_PUBLIC }}'
30
33
31
34
eval `ssh-agent -s`
32
35
ssh-add - <<< '${{ secrets.SIGNING_KEY_PRIVATE }}'
33
36
34
- VERSION=$(pnpm version patch)
37
+ VERSION=$(pnpm version patch --no-git-tag-version )
35
38
39
+ git commit --all --message "🔖 $VERSION"
40
+ git tag $VERSION
36
41
git push
37
42
git push --tags
38
43
Original file line number Diff line number Diff line change
1
+ .pnpm-store /
1
2
bun.lockb
2
3
dist /
3
4
docs /
Original file line number Diff line number Diff line change
1
+ .pnpm-store /
1
2
dist /
2
3
docs /
3
4
node_modules /
You can’t perform that action at this time.
0 commit comments