renew npm mirror in demo.yaml
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
fly6516 2024-12-11 14:00:11 +08:00
parent 7ae98092d7
commit d3c641e9ab

View File

@ -10,7 +10,7 @@ jobs:
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code - name: Check out repository code
uses: actions/checkout@v4 uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository - name: List files in the repository
@ -29,10 +29,14 @@ jobs:
NODEJS_ORG_MIRROR: "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/" # 指定你的本地仓库地址 NODEJS_ORG_MIRROR: "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/" # 指定你的本地仓库地址
- name: Install bun - name: Install bun
run: npm install -g bun run: npm config set registry https://registry.npmmirror.com && npm install -g bun
- name: Install bun - name: Install bun
run: bun install run: bun install
- name: Run development server - name: Run development server
run: bun run dev run: bun run dev
#- name: Run development server
#run: cp ./java /app/java
#- v /homework/java:/app/java