Skip to content

Commit

Permalink
chore: adjustment auto-release
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Nov 7, 2024
1 parent bc40af0 commit d761785
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 527 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
# https://nodejs.org/en/learn/typescript/run-natively#running-typescript-code-with-nodejs
node-version: "22.6.0"
# https://docs.npmjs.com/cli/v7/using-npm/config#strict-peer-deps
node-version: 18
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Dependencies
run: npm install @actions/github --legacy-peer-deps
- name: run JavaScript
run: pnpm install
- name: run auto release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
node --experimental-strip-types scripts/auto-release.ts
run: pnpm run auto-release
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ dist
results
static_site
lib
!packages/auto-release/dist
## test
coverage
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"site": "npm run build:components && cd site && npm run build",
"site:intranet": "npm run build:components && cd site && npm run site:intranet",
"site:preview": "npm run build:components && cd site && npm run site:preview",
"auto-release": "pnpm run --filter 'tdesign-auto-release' start",
"prepare": "husky install"
},
"license": "MIT",
Expand Down
42 changes: 0 additions & 42 deletions packages/auto-release/dist/constants.js

This file was deleted.

80 changes: 0 additions & 80 deletions packages/auto-release/dist/index.js

This file was deleted.

166 changes: 0 additions & 166 deletions packages/auto-release/dist/utils.js

This file was deleted.

4 changes: 3 additions & 1 deletion packages/auto-release/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"main": "dist/index.js",
"scripts": {
"prebuild": "rimraf dist/*",
"dev": "ts-node src/index.ts",
"dev": "nodemon --watch 'src/**/*.ts' --exec ts-node src/index.ts",
"start": "ts-node src/index.ts",
"lint": "eslint --ext .ts src",
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -20,6 +21,7 @@
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"nodemon": "^3.1.7",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
}
Expand Down
Loading

0 comments on commit d761785

Please sign in to comment.