chore(web-platform): release V0.6.1 工程质量优化
This commit is contained in:
@@ -9,15 +9,22 @@ permissions:
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
name: TypeScript、Lint、Unit、Build
|
||||
name: TypeScript, lint, unit, build
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
node-version-file: .nvmrc
|
||||
cache: npm
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.12'
|
||||
cache: pip
|
||||
- run: npm install --global npm@11.17.0
|
||||
- run: npm ci
|
||||
- run: python -m pip install -r requirements-dev.txt
|
||||
- run: npm run lint:python
|
||||
- run: npm run check
|
||||
|
||||
e2e:
|
||||
@@ -27,8 +34,10 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
node-version-file: .nvmrc
|
||||
cache: npm
|
||||
- run: npm install --global npm@11.17.0
|
||||
- run: npm ci
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- run: npm run build
|
||||
- run: npm run test:e2e
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
name: web-platform-release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'V*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Build and publish release
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
cache: npm
|
||||
- uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.12'
|
||||
cache: pip
|
||||
- run: npm install --global npm@11.17.0
|
||||
- run: npm ci
|
||||
- run: python -m pip install -r requirements-dev.txt
|
||||
- run: npm run lint:python
|
||||
- run: npm run check
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- run: npm run test:e2e
|
||||
- name: Package static site
|
||||
shell: bash
|
||||
run: |
|
||||
archive="mujoco-web-platform-${GITHUB_REF_NAME}.tar.gz"
|
||||
tar -C web-platform-dist -czf "$archive" .
|
||||
sha256sum "$archive" > SHA256SUMS
|
||||
- name: Publish GitHub Release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh release create "$GITHUB_REF_NAME" \
|
||||
"mujoco-web-platform-${GITHUB_REF_NAME}.tar.gz" \
|
||||
SHA256SUMS \
|
||||
--generate-notes \
|
||||
--title "$GITHUB_REF_NAME"
|
||||
Reference in New Issue
Block a user