Skip to content

Commit

Permalink
🎨 update (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle authored Jan 14, 2025
1 parent 0ccd22a commit 33503ff
Show file tree
Hide file tree
Showing 55 changed files with 16,323 additions and 28,138 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy-sanity-studio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy sanity studio
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'studio/**/*'
- '!./README.md'
permissions:
id-token: write
packages: write

jobs:
deploy:
uses: ./.github/workflows/deploy-studio/
#with:
# environment: 'development'
secrets:
sanity_deploy_token: ${{ secrets.SANITY_DEPLOY_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/deploy-studio/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and deploy studio

on:
workflow_call:
# inputs:
# environment:
# required: true
# type: string
secrets:
sanity_deploy_token:
required: true

deploy:
name: 'Build and deploy studio'
# environment: ${{ inputs.environment}}
runs-on: ubuntu-latest
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY_TOKEN }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Deploy Studio
run: pnpm run deploy
2 changes: 1 addition & 1 deletion .github/workflows/deploy-website/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
using: 'composite'
steps:
- name: Checkout 🛎 ️
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get long sha ️🏷️
Expand Down
4 changes: 2 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
link-workspace-packages = false
shared-workspace-lockfile = false
#link-workspace-packages = false
#shared-workspace-lockfile = false
28 changes: 0 additions & 28 deletions eslint.config.mjs

This file was deleted.

12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@
"prepare": "husky"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@typescript-eslint/eslint-plugin": "^8.19.0",
"eslint": "^9",
"eslint-config-next": "15.1.3",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"prettier-plugin-tailwindcss": "^0.6.9",
"typescript": "5.7.2"
"typescript": "5.7.2",
"eslint-config-next": "15.1.3",
"eslint-config-prettier": "^10.0.1",
"prettier": "^3.0.2",
"prettier-plugin-tailwindcss": "^0.6.9"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 33503ff

Please sign in to comment.