Skip to content

Commit 090165c

Browse files
v3.0.0 (#57)
2 parents c8b3aa6 + 8775bfc commit 090165c

File tree

19 files changed

+8543
-7955
lines changed

19 files changed

+8543
-7955
lines changed

.github/workflows/ci-cd.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,44 @@ jobs:
4848
uses: falcondev-it/.github/actions/pnpm-install@master
4949

5050
- run: VITEST_DB_DRIVER=${{ matrix.db-driver }} VITEST_STORAGE_DRIVER=${{ matrix.storage-driver }} pnpm run test:run
51+
52+
deploy:
53+
name: 🚀 Build and push
54+
permissions:
55+
packages: write
56+
contents: read
57+
needs: [lint, type-check, test-unit]
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
with:
62+
ref: dev
63+
64+
- name: Get build hash
65+
id: build_hash
66+
run: echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
67+
68+
- name: Extract metadata (tags, labels) for Docker
69+
id: meta
70+
uses: docker/metadata-action@v5
71+
with:
72+
images: ghcr.io/falcondev-oss/github-actions-cache-server
73+
tags: |
74+
dev
75+
76+
- name: Login to GitHub Container Registry
77+
uses: docker/login-action@v3
78+
with:
79+
registry: ghcr.io
80+
username: ${{ github.actor }}
81+
password: ${{ secrets.GITHUB_TOKEN }}
82+
83+
- name: Build and push
84+
uses: docker/build-push-action@v5
85+
with:
86+
context: .
87+
push: true
88+
tags: ${{ steps.meta.outputs.tags }}
89+
labels: ${{ steps.meta.outputs.labels }}
90+
build-args: |
91+
BUILD_HASH=${{ steps.build_hash.outputs.COMMIT_SHA }}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source.fixAll.eslint": "explicit",
77
"source.organizeImports": "never"
88
},
9-
"eslint.experimental.useFlatConfig": true,
9+
"eslint.useFlatConfig": true,
1010
"eslint.validate": [
1111
"javascript",
1212
"javascriptreact",

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM node:20-alpine as builder
22

3+
ARG BUILD_HASH
4+
ENV BUILD_HASH=${BUILD_HASH}
5+
36
WORKDIR /app
47

58
RUN corepack enable

docs/content/1.getting-started/1.index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ sed -i 's/\x41\x00\x43\x00\x54\x00\x49\x00\x4F\x00\x4E\x00\x53\x00\x5F\x00\x43\x
104104
gsed -i 's/\x41\x00\x43\x00\x54\x00\x49\x00\x4F\x00\x4E\x00\x53\x00\x5F\x00\x43\x00\x41\x00\x43\x00\x48\x00\x45\x00\x5F\x00\x55\x00\x52\x00\x4C\x00/\x41\x00\x43\x00\x54\x00\x49\x00\x4F\x00\x4E\x00\x53\x00\x5F\x00\x43\x00\x41\x00\x43\x00\x48\x00\x45\x00\x5F\x00\x4F\x00\x52\x00\x4C\x00/g' /path_to_your_runner/bin/Runner.Worker.dll
105105
```
106106

107+
```bash [Windows]
108+
[byte[]] -split (((Get-Content -Path ./bin/Runner.Worker.dll -Encoding Byte) | ForEach-Object ToString X2) -join '' -Replace '41004300540049004F004E0053005F00430041004300480045005F00550052004C00','41004300540049004F004E0053005F00430041004300480045005F004F0052004C00' -Replace '..', '0x$& ') | Set-Content -Path /path_to_your_runner/bin/Runner.Worker.dll -Encoding Byte
109+
```
110+
107111
::
108112

109113
This will replace the strings `ACTIONS_CACHE_URL` with `ACTIONS_CACHE_ORL` in the runner binary. This will prevent the runner from overwriting the `ACTIONS_CACHE_URL` environment variable and allow it to use your self-hosted cache server.

docs/nuxt.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// https://nuxt.com/docs/api/configuration/nuxt-config
1+
import wasm from 'vite-plugin-wasm'
2+
23
export default defineNuxtConfig({
34
extends: ['@nuxt/ui-pro'],
45
modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/fonts', '@nuxthq/studio'],
@@ -14,6 +15,14 @@ export default defineNuxtConfig({
1415
}
1516
},
1617
},
18+
vite: {
19+
plugins: [wasm()],
20+
build: {
21+
rollupOptions: {
22+
external: ['shiki/onig.wasm'],
23+
},
24+
},
25+
},
1726
app: {
1827
head: {
1928
link: [

docs/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
"typecheck": "nuxt typecheck"
1313
},
1414
"dependencies": {
15-
"@iconify-json/ph": "^1.1.13",
16-
"@iconify-json/simple-icons": "^1.1.102",
17-
"@nuxt/content": "^2.12.1",
18-
"@nuxt/fonts": "^0.7.0",
19-
"@nuxt/ui-pro": "^1.2.0",
20-
"nuxt": "^3.11.2",
21-
"ufo": "^1.5.3"
15+
"@iconify-json/ph": "^1.1.14",
16+
"@iconify-json/simple-icons": "^1.1.114",
17+
"@nuxt/content": "^2.13.2",
18+
"@nuxt/fonts": "^0.7.2",
19+
"@nuxt/ui-pro": "^1.4.1",
20+
"nuxt": "^3.13.0",
21+
"ufo": "^1.5.4",
22+
"vite-plugin-wasm": "^3.3.0"
2223
},
2324
"devDependencies": {
24-
"@nuxthq/studio": "^1.1.0",
25-
"vue-tsc": "^2.0.19"
25+
"@nuxthq/studio": "^2.0.3",
26+
"vue-tsc": "^2.0.29"
2627
}
2728
}

0 commit comments

Comments
 (0)