Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 32 additions & 19 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
if: ${{ !matrix.settings.docker }}
shell: bash
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.APP_NAME }}.*.node
Expand All @@ -123,9 +123,9 @@ jobs:
- host: windows-latest
target: x86_64-pc-windows-msvc
node:
- '14'
- '16'
- '18'
- '20'
- '21'
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
Expand All @@ -138,7 +138,7 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
path: .
Expand All @@ -155,9 +155,9 @@ jobs:
fail-fast: false
matrix:
node:
- '14'
- '16'
- '18'
- '20'
- '21'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -170,7 +170,7 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bindings-x86_64-unknown-linux-gnu
path: .
Expand All @@ -187,9 +187,9 @@ jobs:
fail-fast: false
matrix:
node:
- '14'
- '16'
- '18'
- '20'
- '21'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -204,7 +204,7 @@ jobs:
yarn config set supportedArchitectures.libc "musl"
yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: bindings-x86_64-unknown-linux-musl
path: .
Expand All @@ -231,7 +231,7 @@ jobs:
- name: Install dependencies
run: yarn install
- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Move artifacts
Expand All @@ -241,17 +241,30 @@ jobs:
shell: bash
- name: Publish
run: |
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --tag next --access public
# 获取 commit message(第一行 + 去空格)
COMMIT_MSG=$(git log -1 --pretty=%B | head -n1 | xargs)

# 打印调试信息
echo "Raw commit message:"
git log -1 --pretty=%B | cat -A

echo "Trimmed commit message: '$COMMIT_MSG'"

# 检查是否完全匹配版本号格式
if [[ "$COMMIT_MSG" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Matched latest pattern"
TAG="latest"
elif [[ "$COMMIT_MSG" =~ [0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo "Matched next pattern"
TAG="next"
else
echo "Not matched any pattern"
echo "Not a release, skipping publish"
exit 0
fi

echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
npm publish --tag $TAG --access public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [0.0.19](https://github.com/NervJS/taro-doctor/compare/v0.0.18...v0.0.19) (2025-05-27)


### Features

* 支持 eslint 9 配置以及stylelint检测 ([646a699](https://github.com/NervJS/taro-doctor/commit/646a6994e58225bef6f8201a7ebc58f684bb6956))



## [0.0.18](https://github.com/NervJS/taro-doctor/compare/v0.0.13...v0.0.18) (2024-07-11)


Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-doctor-darwin-arm64",
"version": "0.0.18",
"version": "0.0.19",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-doctor-darwin-x64",
"version": "0.0.18",
"version": "0.0.19",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-doctor-linux-x64-gnu",
"version": "0.0.18",
"version": "0.0.19",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-doctor-linux-x64-musl",
"version": "0.0.18",
"version": "0.0.19",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-doctor-win32-x64-msvc",
"version": "0.0.18",
"version": "0.0.19",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tarojs/plugin-doctor",
"version": "0.0.18",
"version": "0.0.19",
"main": "index.js",
"napi": {
"name": "taro-doctor",
Expand Down