Skip to content

Commit 50218cd

Browse files
committed
ci: use stable version for deploy action
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent f974cdf commit 50218cd

8 files changed

Lines changed: 93 additions & 88 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
33
{
4-
"name": "Node.js & TypeScript",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7-
"features": {
8-
"ghcr.io/astronomer/devcontainer-features/astro-cli:1": {}
9-
}
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7+
"features": {
8+
"ghcr.io/astronomer/devcontainer-features/astro-cli:1": {}
9+
}
1010

11-
// Features to add to the dev container. More info: https://containers.dev/features.
12-
// "features": {},
11+
// Features to add to the dev container. More info: https://containers.dev/features.
12+
// "features": {},
1313

14-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15-
// "forwardPorts": [],
14+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15+
// "forwardPorts": [],
1616

17-
// Use 'postCreateCommand' to run commands after the container is created.
18-
// "postCreateCommand": "yarn install",
17+
// Use 'postCreateCommand' to run commands after the container is created.
18+
// "postCreateCommand": "yarn install",
1919

20-
// Configure tool-specific properties.
21-
// "customizations": {},
20+
// Configure tool-specific properties.
21+
// "customizations": {},
2222

23-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
24-
// "remoteUser": "root"
23+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
24+
// "remoteUser": "root"
2525
}

.github/workflows/main-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
url: ${{ steps.deployment.outputs.url }}
3333
steps:
3434
- id: deployment
35-
uses: hoverkraft-tech/ci-github-publish/actions/deploy/github-pages@main
35+
uses: hoverkraft-tech/ci-github-publish/actions/deploy/github-pages@0.3.2
3636
with:
3737
build-assets-path: dist

.github/workflows/need-fix-to-issue.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
description: "The SHA of the commit to get the diff for"
1212
required: true
1313
manual-base-ref:
14-
description: "By default, the commit entered above is compared to the one directly
14+
description:
15+
"By default, the commit entered above is compared to the one directly
1516
before it; to go back further, enter an earlier SHA here"
1617
required: false
1718

.vscode/settings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"somesass.css.customData": [
3-
".vscode/tailwind.json"
4-
],
5-
"scss.lint.unknownAtRules": "ignore"
2+
"somesass.css.customData": [".vscode/tailwind.json"],
3+
"scss.lint.unknownAtRules": "ignore"
64
}

.vscode/tailwind.json

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
{
2-
"version": 1.1,
3-
"atDirectives": [
4-
{
5-
"name": "@tailwind",
6-
"description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.",
7-
"references": [
8-
{
9-
"name": "Tailwind Documentation",
10-
"url": "https://tailwindcss.com/docs/functions-and-directives#tailwind"
11-
}
12-
]
13-
},
14-
{
15-
"name": "@apply",
16-
"description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.",
17-
"references": [
18-
{
19-
"name": "Tailwind Documentation",
20-
"url": "https://tailwindcss.com/docs/functions-and-directives#apply"
21-
}
22-
]
23-
},
24-
{
25-
"name": "@responsive",
26-
"description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n",
27-
"references": [
28-
{
29-
"name": "Tailwind Documentation",
30-
"url": "https://tailwindcss.com/docs/functions-and-directives#responsive"
31-
}
32-
]
33-
},
34-
{
35-
"name": "@screen",
36-
"description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n",
37-
"references": [
38-
{
39-
"name": "Tailwind Documentation",
40-
"url": "https://tailwindcss.com/docs/functions-and-directives#screen"
41-
}
42-
]
43-
},
44-
{
45-
"name": "@variants",
46-
"description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n",
47-
"references": [
48-
{
49-
"name": "Tailwind Documentation",
50-
"url": "https://tailwindcss.com/docs/functions-and-directives#variants"
51-
}
52-
]
53-
}
54-
]
55-
}
2+
"version": 1.1,
3+
"atDirectives": [
4+
{
5+
"name": "@tailwind",
6+
"description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.",
7+
"references": [
8+
{
9+
"name": "Tailwind Documentation",
10+
"url": "https://tailwindcss.com/docs/functions-and-directives#tailwind"
11+
}
12+
]
13+
},
14+
{
15+
"name": "@apply",
16+
"description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.",
17+
"references": [
18+
{
19+
"name": "Tailwind Documentation",
20+
"url": "https://tailwindcss.com/docs/functions-and-directives#apply"
21+
}
22+
]
23+
},
24+
{
25+
"name": "@responsive",
26+
"description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n",
27+
"references": [
28+
{
29+
"name": "Tailwind Documentation",
30+
"url": "https://tailwindcss.com/docs/functions-and-directives#responsive"
31+
}
32+
]
33+
},
34+
{
35+
"name": "@screen",
36+
"description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n",
37+
"references": [
38+
{
39+
"name": "Tailwind Documentation",
40+
"url": "https://tailwindcss.com/docs/functions-and-directives#screen"
41+
}
42+
]
43+
},
44+
{
45+
"name": "@variants",
46+
"description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n",
47+
"references": [
48+
{
49+
"name": "Tailwind Documentation",
50+
"url": "https://tailwindcss.com/docs/functions-and-directives#variants"
51+
}
52+
]
53+
}
54+
]
55+
}

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ There's 3 files involved in the theme customization:
9696
│ └── theme.json # A JSON file used for theme domain names and font settings. Define your theme color names and font settings here.
9797
├── tailwind.config.js # The tailwind configuration file, you know what it is, the other two files are used here.
9898
```
99-
99+
100100
## 🧞 Commands (by Astro)
101101

102102
All commands are run from the root of the project, from a terminal:
@@ -110,7 +110,6 @@ All commands are run from the root of the project, from a terminal:
110110
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
111111
| `npm run astro -- --help` | Get help using the Astro CLI |
112112

113-
114113
## Author
115114

116115
👤 **Hoverkraft <contact@hoverkraft.cloud>**
@@ -129,4 +128,4 @@ Give a ⭐️ if this project helped you!
129128
## 📝 License
130129

131130
Copyright © 2020 [Hoverkraft <contact@hoverkraft.cloud>](https://github.com/hoverkraft).<br />
132-
This project is [0BSD](https://github.com/hoverkraft/landing-page/blob/main/LICENSE) licensed.
131+
This project is [0BSD](https://github.com/hoverkraft/landing-page/blob/main/LICENSE) licensed.

astro.config.mjs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,19 @@ import AutoImport from "astro-auto-import";
88

99
// https://astro.build/config
1010
export default defineConfig({
11-
site: config.site.base_url ? config.site.base_url : "https://hoverkraft.cloud",
11+
site: config.site.base_url
12+
? config.site.base_url
13+
: "https://hoverkraft.cloud",
1214
base: config.site.base_path ? config.site.base_path : "/",
1315
trailingSlash: config.site.trailing_slash ? "always" : "never",
1416
vite: {
1517
css: {
1618
preprocessorOptions: {
1719
scss: {
18-
api: "modern-compiler"
19-
}
20-
}
21-
}
20+
api: "modern-compiler",
21+
},
22+
},
23+
},
2224
},
2325
// Image optimization service
2426
image: {
@@ -38,12 +40,12 @@ export default defineConfig({
3840
"@/components/Badge.astro",
3941
],
4042
}),
41-
mdx()
43+
mdx(),
4244
],
4345
markdown: {
4446
shikiConfig: {
4547
theme: "one-dark-pro",
4648
wrap: true,
47-
}
48-
}
49+
},
50+
},
4951
});

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111
"build": "astro check && astro build",
1212
"preview": "astro preview",
1313
"astro": "astro",
14-
"format": "prettier -w ."
14+
"format": "prettier -w .",
15+
"lint": "npm run lint:prettier && npm run lint:astro",
16+
"lint:astro": "astro check",
17+
"lint:prettier": "prettier --check .",
18+
"lint:fix": "npm run lint:fix:prettier",
19+
"lint:fix:prettier": "prettier -w ."
1520
},
1621
"dependencies": {
1722
"@astrojs/check": "^0.9.4",

0 commit comments

Comments
 (0)