Skip to content

Commit 3c2d0c6

Browse files
ci
1 parent 75272c6 commit 3c2d0c6

File tree

92 files changed

+824
-632
lines changed

Some content is hidden

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

92 files changed

+824
-632
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
/src-ssr
88
/preview/public/src_sw.ts
99
/preview/public/src_sw.ts.js
10+
/src/starters
11+
/preview/dist

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ module.exports = {
9494
"functional/prefer-immutable-types": "off",
9595
"functional/no-classes": "off",
9696
"functional/no-loop-statements": "off",
97-
"@typescript-eslint/consistent-type-imports": "off"
97+
"@typescript-eslint/consistent-type-imports": "off",
9898
},
9999
}

.github/workflows/eslint.yml

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
# ESLint is a tool for identifying and reporting on patterns
6-
# found in ECMAScript/JavaScript code.
7-
# More details at https://github.com/eslint/eslint
8-
# and https://eslint.org
9-
10-
name: ESLint
11-
12-
on:
13-
push:
14-
branches: ["main"]
15-
pull_request:
16-
# The branches below must be a subset of the branches above
17-
branches: ["main"]
18-
schedule:
19-
- cron: "15 10 * * 5"
20-
21-
jobs:
22-
eslint:
23-
name: Run eslint scanning
24-
runs-on: ubuntu-latest
25-
permissions:
26-
contents: read
27-
security-events: write
28-
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
29-
steps:
30-
- name: Checkout code
31-
uses: actions/checkout@v3
32-
33-
- name: Install Node.js
34-
uses: actions/setup-node@v3
35-
with:
36-
node-version: 18
37-
38-
- uses: pnpm/action-setup@v2.0.1
39-
name: Install pnpm
40-
id: pnpm-install
41-
with:
42-
version: 7.25.1
43-
run_install: false
44-
45-
- name: Install depends
46-
run: pnpm i --no-frozen-lockfile
47-
48-
- name: Run ESLint
49-
run: pnpm build && pnpm lint #--fix
50-
51-
52-
# - name: Commit changes
53-
# uses: EndBug/add-and-commit@v9
54-
# with:
55-
# author_name: GitHub Actions
56-
# author_email: actions@github.com
57-
# message: 'chore: `eslint --fix`'
58-
# push: origin main
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# ESLint is a tool for identifying and reporting on patterns
6+
# found in ECMAScript/JavaScript code.
7+
# More details at https://github.com/eslint/eslint
8+
# and https://eslint.org
9+
10+
name: ESLint
11+
12+
on:
13+
push:
14+
branches: [ "main" ]
15+
pull_request:
16+
# The branches below must be a subset of the branches above
17+
branches: [ "main" ]
18+
schedule:
19+
- cron: '15 10 * * 5'
20+
21+
jobs:
22+
eslint:
23+
name: Run eslint scanning
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
security-events: write
28+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v3
32+
33+
- name: Install Node.js
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 18
37+
38+
- uses: pnpm/action-setup@v2.0.1
39+
name: Install pnpm
40+
id: pnpm-install
41+
with:
42+
version: 7
43+
run_install: false
44+
45+
- name: Install depends
46+
run: pnpm setup
47+
48+
- name: Run ESLint
49+
run: pnpm lint #--fix
50+
51+
52+
# - name: Commit changes
53+
# uses: EndBug/add-and-commit@v9
54+
# with:
55+
# author_name: GitHub Actions
56+
# author_email: actions@github.com
57+
# message: 'chore: `eslint --fix`'
58+
# push: origin main
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
name: Prettier
2-
3-
# This action works with pull requests and pushes
4-
on:
5-
pull_request:
6-
push:
7-
branches:
8-
- main
9-
10-
jobs:
11-
prettier:
12-
runs-on: ubuntu-latest
13-
permissions:
14-
contents: read
15-
security-events: write
16-
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
17-
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@v3
20-
21-
- name: Install Node.js
22-
uses: actions/setup-node@v3
23-
with:
24-
node-version: 18
25-
26-
- uses: pnpm/action-setup@v2.0.1
27-
name: Install pnpm
28-
id: pnpm-install
29-
with:
30-
version: 7.25.1
31-
run_install: false
32-
33-
- name: Install depends
34-
run: pnpm i --no-frozen-lockfile
35-
36-
- name: Fretit
37-
run: pnpm pretit
38-
39-
# - name: Commit changes
40-
# uses: EndBug/add-and-commit@v9
41-
# with:
42-
# author_name: GitHub Actions
43-
# author_email: actions@github.com
44-
# message: 'chore: `prettier -w`'
45-
# push: origin main
1+
name: Prettier
2+
3+
# This action works with pull requests and pushes
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
prettier:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
security-events: write
16+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
21+
- name: Install Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: 18
25+
26+
- uses: pnpm/action-setup@v2.0.1
27+
name: Install pnpm
28+
id: pnpm-install
29+
with:
30+
version: 7
31+
run_install: false
32+
33+
- name: Install depends
34+
run: pnpm setup
35+
36+
- name: Fretit
37+
run: pnpm pretit
38+
39+
# - name: Commit changes
40+
# uses: EndBug/add-and-commit@v9
41+
# with:
42+
# author_name: GitHub Actions
43+
# author_email: actions@github.com
44+
# message: 'chore: `prettier -w`'
45+
# push: origin main

.github/workflows/release.yml

Lines changed: 79 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,83 @@
1-
name: Release
2-
on:
3-
push:
4-
tags:
5-
- "v*.*.*"
6-
jobs:
7-
release:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout 🛎️
11-
uses: actions/checkout@v3
12-
13-
- name: Install Node.js
14-
uses: actions/setup-node@v3
15-
with:
16-
registry-url: "https://registry.npmjs.org"
17-
node-version: 18
18-
19-
- uses: pnpm/action-setup@v2.0.1
20-
name: Install pnpm
21-
id: pnpm-install
22-
with:
23-
version: 7.25.1
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- "v*.*.*"
6+
jobs:
7+
ci:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
security-events: write
12+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Install Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 18
21+
22+
- uses: pnpm/action-setup@v2.0.1
23+
name: Install pnpm
24+
id: pnpm-install
25+
with:
26+
version: 7
2427
run_install: false
25-
26-
- name: Build
27-
run: pnpm build
28-
29-
- name: Test
30-
run: pnpm test
31-
28+
29+
- name: Install depends
30+
run: pnpm setup
31+
3232
- name: Typing
33-
run: pnpm typing
33+
run: pnpm typing
34+
35+
- name: Test
36+
run: pnpm test
37+
release:
38+
needs: ci
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout 🛎️
42+
uses: actions/checkout@v3
43+
44+
- name: Install Node.js
45+
uses: actions/setup-node@v3
46+
with:
47+
node-version: 18
48+
49+
- uses: pnpm/action-setup@v2.0.1
50+
name: Install pnpm
51+
id: pnpm-install
52+
with:
53+
version: 7
54+
run_install: false
55+
56+
- name: Install depends
57+
run: pnpm setup
58+
59+
- name: Test
60+
run: pnpm test
61+
62+
- name: Push to branch `release`
63+
run: |
64+
git branch release -f
65+
git push origin release -f
66+
67+
- name: Generate changelog
68+
id: changelog
69+
uses: metcalfc/changelog-generator@v4.0.1
70+
with:
71+
myToken: ${{ secrets.GITHUB_TOKEN }}
3472

35-
- name: Deploy to GitHub Pages
36-
uses: JamesIves/github-pages-deploy-action@v4.3.3
73+
- name: Create Release
74+
id: create_release
75+
uses: actions/create-release@latest
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3778
with:
38-
branch: gh-pages # The branch the action should deploy to.
39-
folder: dist # The folder the action should deploy.
40-
41-
42-
changelog-release:
43-
needs: release
44-
runs-on: ubuntu-latest
45-
steps:
46-
- name: Checkout code
47-
uses: actions/checkout@v3
48-
49-
- name: Generate changelog
50-
id: changelog
51-
uses: metcalfc/changelog-generator@v4.0.1
52-
with:
53-
myToken: ${{ secrets.GITHUB_TOKEN }}
54-
55-
- name: Create Release
56-
id: create_release
57-
uses: actions/create-release@latest
58-
env:
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
with:
61-
tag_name: ${{ github.ref }}
62-
release_name: ${{ github.ref }}
63-
body: ${{ steps.changelog.outputs.changelog }}
64-
draft: false
65-
prerelease: false
79+
tag_name: ${{ github.ref }}
80+
release_name: ${{ github.ref }}
81+
body: ${{ steps.changelog.outputs.changelog }}
82+
draft: false
83+
prerelease: false

0 commit comments

Comments
 (0)