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
8 changes: 4 additions & 4 deletions .github/workflows/ci-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: "CI Check"

on:
pull_request:
branches:
- '**'
branches:
- "**"

# Cancel prev CI if new commit come
concurrency:
Expand All @@ -15,13 +15,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [20]
node: [24]
name: Run Test on Node ${{ matrix.node }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Setup yarn
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/create-publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ on:
workflow_dispatch:
inputs:
semver:
description: 'New Version(semver)'
description: "New Version(semver)"
required: true
default: 'patch'
default: "patch"
type: choice
options:
- patch
- minor
slack_user:
required: false
description: 'Inform slack user when publish is done'
description: "Inform slack user when publish is done"
type: string

permissions:
contents: write
pull-requests: write
Expand All @@ -25,6 +25,10 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install Lerna 4.0.0
run: npm install --global lerna@4.0.0
- name: Update Version
Expand All @@ -51,7 +55,7 @@ jobs:
branch: release/${{ env.PACKAGE_VERSION }}
branch-suffix: timestamp
delete-branch: true
title: 'v${{ env.PACKAGE_VERSION }}'
title: "v${{ env.PACKAGE_VERSION }}"
body: |
${{ steps.release_note.outputs.stdout }}
labels: "Type: Release"
Expand All @@ -67,4 +71,4 @@ jobs:
with:
name: publish-output-v${{ env.PACKAGE_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
path: output.txt
path: output.txt
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [20]
node: [24]
name: Publish on Node ${{ matrix.node }}
steps:
- name: checkout
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
if: steps.tag_check.outputs.exists_tag == 'false'
uses: actions/setup-node@v4
with:
node-version: 22.14.0
node-version: 24
registry-url: https://registry.npmjs.org
- name: Install npm with OIDC support
if: steps.tag_check.outputs.exists_tag == 'false'
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@ on:
workflow_dispatch:
inputs:
description:
description: 'Description for the sync action'
description: "Description for the sync action"
required: false
slack_user:
description: 'Slack user ID to notify (e.g., U123456)'
description: "Slack user ID to notify (e.g., U123456)"
required: false
# 外部 dispatch 触发
repository_dispatch:
types: [sync-icons]
# 定时执行:每天 UTC 时间 0:00(北京时间 8:00)
schedule:
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
sync-icon:
runs-on: ubuntu-latest
strategy:
matrix:
node: [20]
node: [24]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "yarn"
Expand All @@ -42,12 +42,12 @@ jobs:
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: '[SYNC-ICON]: update icons'
commit-message: "[SYNC-ICON]: update icons"
committer: netweng <xiaojun@smartx.com>
author: netweng <xiaojun@smartx.com>
delete-branch: true
branch-suffix: short-commit-hash
title: '[SYNC-ICON]: update icons'
title: "[SYNC-ICON]: update icons"
labels: feat
body: |
Sync Icons from figma
Expand Down Expand Up @@ -75,9 +75,9 @@ jobs:
PR_URL="${{ steps.cpr.outputs.pull-request-url }}"
PR_NUMBER="${{ steps.cpr.outputs.pull-request-number }}"
SLACK_USER_MENTION="${{ steps.set_slack_user.outputs.slack_user_mention }}"

TEXT="🎨 Icons Synced! New PR created: <${PR_URL}|#${PR_NUMBER}>\n${DESCRIPTION} ${SLACK_USER_MENTION}"

PAYLOAD=$(jq -n --arg text "$TEXT" '{text: $text}')
echo "payload<<EOF" >> $GITHUB_OUTPUT
echo "$PAYLOAD" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"bundlewatch": "^0.3.3"
},
"engines": {
"node": "20.x"
"node": "24.x"
},
"resolutions": {
"@types/react": "^17.0.50"
Expand Down
Loading