From c95531273b31da51dfc0f0fe928edaff24174b71 Mon Sep 17 00:00:00 2001 From: wangxingkang Date: Wed, 24 Jan 2024 17:34:44 +0800 Subject: [PATCH] chore: update deps --- .github/workflows/emoji-helper.yml | 14 ++++++++++ .github/workflows/release.yml | 44 ++++++++++++++++++++++++++++++ package.json | 12 ++++++-- 3 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/emoji-helper.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/emoji-helper.yml b/.github/workflows/emoji-helper.yml new file mode 100644 index 0000000..8965a1a --- /dev/null +++ b/.github/workflows/emoji-helper.yml @@ -0,0 +1,14 @@ +name: Emoji Helper + +on: + release: + types: [published] + +jobs: + emoji: + runs-on: ubuntu-latest + steps: + - uses: actions-cool/emoji-helper@v1.0.0 + with: + type: 'release' + emoji: '+1, laugh, heart, hooray, rocket, eyes' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..df403cb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ +name: Release + +env: + NODE_OPTIONS: --max-old-space-size=6144 + +on: + workflow_dispatch: + +jobs: + build-and-release: + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: 'Setup Node.js' + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Cache pnpm modules + uses: actions/cache@v4 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}- + + - name: Pnpm action + uses: pnpm/action-setup@v2 + with: + version: latest + run_install: true + + - name: Build + run: pnpm build + + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release diff --git a/package.json b/package.json index 8f55fed..92f79ec 100644 --- a/package.json +++ b/package.json @@ -37,14 +37,19 @@ }, "dependencies": { "@pansy/scrollbar-width": "^1.0.0", - "@pansy/shared": "^1.14.0", + "@pansy/shared": "^1.16.1", "@types/lodash-es": "^4.17.9", "lodash-es": "^4.17.21", "throttle-debounce": "^5.0.0" }, "devDependencies": { - "@commitlint/cli": "^17.8.0", - "@commitlint/config-conventional": "^17.8.0", + "@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", + "@semantic-release/release-notes-generator": "^12.1.0", "@testing-library/jest-dom": "^6.1.4", "@testing-library/react": "^14.0.0", "@types/jest": "^29.5.6", @@ -59,6 +64,7 @@ "is-ci": "^3.0.1", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", + "semantic-release": "^23.0.0", "lint-staged": "^15.0.1", "prettier": "^3.0.3", "react": "^18.2.0",