Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Jan 24, 2024
1 parent 0ad0649 commit 2c857e4
Show file tree
Hide file tree
Showing 4 changed files with 795 additions and 680 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
name: Release

env:
NODE_OPTIONS: --max-old-space-size=6144

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 'Setup Node.js'
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Cache pnpm modules
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
Expand All @@ -36,14 +34,12 @@ jobs:
version: latest
run_install: true

- name: Ts Check
run: pnpm tsc:check

- name: Build
run: pnpm build

- name: Release
run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

21 changes: 12 additions & 9 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
module.exports = {
branches: ['+([0-9])?(.{+([0-9]),x}).x', 'main'],
branches: ['master'],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/github",
['@semantic-release/npm', {
pkgRoot: './lib'
}],
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
[
"@semantic-release/git",
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md'
}
],
'@semantic-release/npm',
'@semantic-release/github',
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json'],
message:
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
"tree-lodash": "^0.3.1"
},
"devDependencies": {
"@commitlint/cli": "17.4.4",
"@commitlint/config-conventional": "17.4.4",
"@semantic-release/changelog": "6.0.2",
"@semantic-release/git": "10.0.1",
"@commitlint/cli": "^18.4.4",
"@commitlint/config-conventional": "^18.4.4",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.6",
"@semantic-release/npm": "^11.0.2",
"@types/lodash": "^4.14.191",
"@types/node": "^18.14.6",
"@types/react": "^18.0.28",
Expand All @@ -61,10 +63,10 @@
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"prettier": "^2.8.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"redbud": "1.6.0",
"semantic-release": "19.0.5",
"semantic-release": "^23.0.0",
"typescript": "4.9.5",
"vitest": "0.29.2"
},
Expand Down
Loading

0 comments on commit 2c857e4

Please sign in to comment.