Skip to content

Commit 7bd4b36

Browse files
committed
build: update actions
1 parent 662895b commit 7bd4b36

File tree

4 files changed

+26
-33
lines changed

4 files changed

+26
-33
lines changed

.github/workflows/node.js.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: '24'
20-
registry-url: 'https://registry.npmjs.org'
21-
- run: npm install
20+
- run: npm ci
2221
- run: npm run build
2322
- run: npm test
2423
- run: npm publish --provenance

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: NPM Test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ['master']
7+
pull_request:
8+
branches: ['master']
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: '24'
19+
cache: 'npm'
20+
- run: npm ci
21+
- run: npm run build --if-present
22+
- run: npm test

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
> 此 behavior 依赖开发者工具的 npm 构建。具体详情可查阅[官方 npm 文档](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html)
66
7-
注意: 4.0.0 大版本变更了最基本的接口名,从低版本升级到 4.0.0 以上时请注意 [#60](https://github.com/wechat-miniprogram/computed/issues/60) 的问题。
7+
> 注意: 4.0.0 大版本变更了最基本的接口名,从低版本升级到 4.0.0 以上时请注意 [#60](https://github.com/wechat-miniprogram/computed/issues/60) 的问题。
88
9+
[![npm version](https://img.shields.io/npm/v/miniprogram-computed.svg)](https://www.npmjs.com/package/miniprogram-computed)
10+
[![Build Status](https://img.shields.io/github/actions/workflow/status/wechat-miniprogram/computed/ci.yml)](https://github.com/wechat-miniprogram/computed/actions)
911

1012
## 使用方法
1113

0 commit comments

Comments
 (0)