mirror of
				https://github.com/suyiiyii/nonebot-bison.git
				synced 2025-11-04 05:24:53 +08:00 
			
		
		
		
	👷 将自动化工具中的 yarn 替换为 pnpm
This commit is contained in:
		
							parent
							
								
									cf6b7fcd6d
								
							
						
					
					
						commit
						bd81449534
					
				@ -4,7 +4,7 @@
 | 
			
		||||
  "features": {
 | 
			
		||||
    "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": {
 | 
			
		||||
    "vscode": {
 | 
			
		||||
      "settings": {
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/actions/build-docs/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/actions/build-docs/action.yml
									
									
									
									
										vendored
									
									
								
							@ -10,5 +10,5 @@ runs:
 | 
			
		||||
    - name: Build Frontend
 | 
			
		||||
      shell: bash
 | 
			
		||||
      run: |
 | 
			
		||||
        yarn install
 | 
			
		||||
        yarn docs:build
 | 
			
		||||
        pnpm install
 | 
			
		||||
        pnpm docs:build
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								.github/actions/build-frontend/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/actions/build-frontend/action.yml
									
									
									
									
										vendored
									
									
								
							@ -11,5 +11,5 @@ runs:
 | 
			
		||||
      shell: bash
 | 
			
		||||
      working-directory: ./admin-frontend
 | 
			
		||||
      run: |
 | 
			
		||||
        yarn install
 | 
			
		||||
        yarn build
 | 
			
		||||
        pnpm install
 | 
			
		||||
        pnpm build
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										13
									
								
								.github/actions/setup-node/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								.github/actions/setup-node/action.yml
									
									
									
									
										vendored
									
									
								
							@ -8,11 +8,16 @@ runs:
 | 
			
		||||
      with:
 | 
			
		||||
        node-version: "20"
 | 
			
		||||
 | 
			
		||||
    - id: yarn-cache-dir-path
 | 
			
		||||
      run: echo "::set-output name=dir::$(yarn cache dir)"
 | 
			
		||||
    - name: Set Up Pnpm
 | 
			
		||||
      uses: https://git.dsvision.net/actions/pnpm-setup@v2
 | 
			
		||||
      with:
 | 
			
		||||
        version: 9.10.0
 | 
			
		||||
 | 
			
		||||
    - id: pnpm-cache-dir-path
 | 
			
		||||
      run: echo "::set-output name=dir::$(pnpm store path)"
 | 
			
		||||
      shell: bash
 | 
			
		||||
 | 
			
		||||
    - uses: actions/cache@v4
 | 
			
		||||
      with:
 | 
			
		||||
        path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
 | 
			
		||||
        key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
 | 
			
		||||
        path: ${{ steps.pnpm-cache-dir-path.outputs.dir }}
 | 
			
		||||
        key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,8 @@
 | 
			
		||||
FROM node:20.17.0 as frontend
 | 
			
		||||
ADD . /app
 | 
			
		||||
WORKDIR /app/admin-frontend
 | 
			
		||||
RUN yarn && yarn build
 | 
			
		||||
RUN npm install -g pnpm
 | 
			
		||||
RUN pnpm install && pnpm build
 | 
			
		||||
 | 
			
		||||
FROM python:3.11
 | 
			
		||||
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user