Skip to content

Commit

Permalink
ci: rm push
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Apr 4, 2024
1 parent 98a33a6 commit 23d7bee
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/read.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Node.js CI
# name: Node.js CI

on:
push:
branches: [main]
pull_request:
branches: [main]
# on:
# push:
# branches: [main]
# pull_request:
# branches: [main]

jobs:
build:
runs-on: ubuntu-latest
# jobs:
# build:
# runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x] # 选择你需要的 Node.js 版本
# strategy:
# matrix:
# node-version: [20.x] # 选择你需要的 Node.js 版本

steps:
- uses: actions/checkout@v3 # 检出你的仓库
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install # 安装 package.json 中的依赖项
- name: Run a script
run: node pteer.js # 替换为你想运行的脚本的实际名称
# steps:
# - uses: actions/checkout@v3 # 检出你的仓库
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# - name: Install dependencies
# run: npm install # 安装 package.json 中的依赖项
# - name: Run a script
# run: node pteer.js # 替换为你想运行的脚本的实际名称

0 comments on commit 23d7bee

Please sign in to comment.