mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: bun
This commit is contained in:
1 parent
7e9acfdd7b
commit
3a66ccb6d2
1 file changed
+7
-3
@@ -7,7 +7,7 @@ name: Deploy Next.js site to Pages
|
|||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ['main']
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -21,7 +21,7 @@ permissions:
|
|||||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
group: 'pages'
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -44,6 +44,10 @@ jobs:
|
|||||||
echo "command=ci" >> $GITHUB_OUTPUT
|
echo "command=ci" >> $GITHUB_OUTPUT
|
||||||
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
|
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
|
||||||
exit 0
|
exit 0
|
||||||
|
elif [ -f "${{ github.workspace }}/bun.lockb" ]; then
|
||||||
|
echo "manager=bun" >> $GITHUB_OUTPUT
|
||||||
|
echo "command=install" >> $GITHUB_OUTPUT
|
||||||
|
echo "runner=bun" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "Unable to determine package manager"
|
echo "Unable to determine package manager"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -51,7 +55,7 @@ jobs:
|
|||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: '20'
|
||||||
cache: ${{ steps.detect-package-manager.outputs.manager }}
|
cache: ${{ steps.detect-package-manager.outputs.manager }}
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
|
|||||||
Reference in new issue
Block a user