Skip to content

Commit

Permalink
feat: add install dependencies action
Browse files Browse the repository at this point in the history
  • Loading branch information
freeshineit committed Jul 31, 2024
1 parent 3abd2a4 commit 63dbd68
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 整个流程的名字
name: install dependencies
# 触发时机,在 tag 被 push 操作触发
on:
push:
branches: ["master", "develop"]
pull_request:
branches: ["master"]

# 任务,定义个changelog 的任务
jobs:
changelog:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# 设置 Node
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
registry-url: https://registry.npmjs.org
# 安装依赖
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Install dependencies
run: pnpm install

0 comments on commit 63dbd68

Please sign in to comment.