3 Commits

Author SHA1 Message Date
suyiiyii f01c2567c1 🐛 最讨厌调试 action 了 ( 2024-09-28 01:39:48 +08:00
suyiiyii 75ab14cd98 🐛 写串台了艹 2024-09-28 01:35:17 +08:00
suyiiyii bd81449534 👷 将自动化工具中的 yarn 替换为 pnpm 2024-09-28 01:30:02 +08:00
5 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"features": { "features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {} "ghcr.io/devcontainers-contrib/features/poetry:2": {}
}, },
"postCreateCommand": "poetry config virtualenvs.in-project true && poetry install -E all && poetry run pre-commit install && yarn install", "postCreateCommand": "poetry config virtualenvs.in-project true && poetry install -E all && poetry run pre-commit install && npm install -g pnpm && pnpm install",
"customizations": { "customizations": {
"vscode": { "vscode": {
"settings": { "settings": {
+2 -2
View File
@@ -10,5 +10,5 @@ runs:
- name: Build Frontend - name: Build Frontend
shell: bash shell: bash
run: | run: |
yarn install pnpm install
yarn docs:build pnpm docs:build
+2 -2
View File
@@ -11,5 +11,5 @@ runs:
shell: bash shell: bash
working-directory: ./admin-frontend working-directory: ./admin-frontend
run: | run: |
yarn install pnpm install
yarn build pnpm build
+9 -4
View File
@@ -8,11 +8,16 @@ runs:
with: with:
node-version: "20" node-version: "20"
- id: yarn-cache-dir-path - name: Set Up Pnpm
run: echo "::set-output name=dir::$(yarn cache dir)" uses: pnpm/action-setup@v4
with:
version: 9
- id: pnpm-cache-dir-path
run: echo "::set-output name=dir::$(pnpm store path)"
shell: bash shell: bash
- uses: actions/cache@v4 - uses: actions/cache@v4
with: with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
+2 -1
View File
@@ -1,7 +1,8 @@
FROM node:20.17.0 as frontend FROM node:20.17.0 as frontend
ADD . /app ADD . /app
WORKDIR /app/admin-frontend WORKDIR /app/admin-frontend
RUN yarn && yarn build RUN npm install -g pnpm
RUN pnpm install && pnpm build
FROM python:3.11 FROM python:3.11
RUN python3 -m pip install poetry && poetry config virtualenvs.create false RUN python3 -m pip install poetry && poetry config virtualenvs.create false