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
15 changes: 7 additions & 8 deletions .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
# 判断用户是否有写权限
- name: 'Check if user has write access'
uses: 'lannonbr/repo-permission-check-action@2.0.0'
uses: 'opensumi/actions/permission-check@main'
with:
permission: 'write'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Checkout to specific branch
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
Expand All @@ -43,11 +43,11 @@ jobs:
id: yarn_cache_dir_path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn_cache
with:
path: ${{ steps.yarn_cache_dir_path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

Expand All @@ -56,7 +56,6 @@ jobs:
run: |
yarn install --immutable
yarn run init
yarn run build:all

- name: Setup .yarnrc.yml
run: |
Expand Down Expand Up @@ -92,4 +91,4 @@ jobs:
cat $GITHUB_STEP_SUMMARY >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
env:
INPUT_REF: ${{ github.event.inputs.ref }}
INPUT_REF: ${{ github.event.inputs.ref }}
15 changes: 7 additions & 8 deletions .github/workflows/release-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
# 判断用户是否有写权限
- name: 'Check if user has write access'
uses: 'lannonbr/repo-permission-check-action@2.0.0'
uses: 'opensumi/actions/permission-check@main'
with:
permission: 'write'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Checkout to specific branch
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
Expand All @@ -43,11 +43,11 @@ jobs:
id: yarn_cache_dir_path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn_cache
with:
path: ${{ steps.yarn_cache_dir_path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

Expand All @@ -56,7 +56,6 @@ jobs:
run: |
yarn install --immutable
yarn run init
yarn run build:all

- name: Setup .yarnrc.yml
run: |
Expand Down Expand Up @@ -92,4 +91,4 @@ jobs:
cat $GITHUB_STEP_SUMMARY >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
env:
INPUT_REF: ${{ github.event.inputs.ref }}
INPUT_REF: ${{ github.event.inputs.ref }}
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
environment: latest
strategy:
matrix:
node-version: [16.x]
node-version: [20.x]

steps:
# 判断用户是否有管理员权限
Expand All @@ -31,20 +31,21 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'

- uses: mukunku/tag-exists-action@v1.0.0
- uses: mukunku/tag-exists-action@v1.6.0
id: checkTag
with:
tag: v${{github.event.inputs.version}}
env:
TAG: v${{github.event.inputs.version}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Git Identity
Expand All @@ -60,11 +61,11 @@ jobs:
id: yarn_cache_dir_path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v4
id: yarn_cache
with:
path: ${{ steps.yarn_cache_dir_path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

Expand All @@ -74,7 +75,6 @@ jobs:
run: |
yarn install --immutable
yarn run init
yarn run build:all
yarn run update-package -v ${{ github.event.inputs.version }}

- name: Setup .yarnrc.yml
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prepare": "husky install",
"type-check": "tsc --skipLibCheck --noEmit",
"preinstall": "node scripts/preinstall",
"init": "npm run clean && npm run generate && npm run build",
"init": "npm run clean && npm run generate && npm run build:all",
"start": "npm run dev",
"generate": "node scripts/generate",
"editor": "INTEGRATION=editor npm run dev",
Expand Down