From 469386448b22b64604d0eb1e0ee16f7ab29f4a57 Mon Sep 17 00:00:00 2001 From: Evan Luo Date: Sun, 1 Dec 2024 21:08:09 -0500 Subject: [PATCH] chore: bump version to 2.8.2 - Update version in package.json from 2.8.1 to 2.8.2 - Update version in package-lock.json from 2.8.1 to 2.8.2 --- .github/workflows/release.yml | 95 ----------------------------------- package-lock.json | 4 +- package.json | 2 +- 3 files changed, 3 insertions(+), 98 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 42a56f9f..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,95 +0,0 @@ -name: Release - -on: - workflow_dispatch: - inputs: - release-type: - description: 'Release type (major/minor/patch)' - required: true - default: 'patch' - type: choice - options: - - patch - - minor - - major - -permissions: - contents: write - pull-requests: write - -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout dev Branch - uses: actions/checkout@v4 - with: - ref: dev - fetch-depth: 0 - - - name: Import GPG Key - id: import-gpg - uses: crazy-max/ghaction-import-gpg@v4 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - passphrase: ${{ secrets.PASSPHRASE }} - git_user_signingkey: true - git_commit_gpgsign: true - - - name: Configure Git - run: | - git config --global user.email "${{ steps.import-gpg.outputs.email }}" - git config --global user.name "${{ steps.import-gpg.outputs.name }}" - git config --global commit.gpgsign true - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20.x' - registry-url: https://registry.npmjs.org/ - - - name: Install Dependencies - run: npm ci - - - name: Determine New Version - id: new_version - run: | - CURRENT_VERSION=$(node -p "require('./package.json').version") - NEW_VERSION=$(npm version ${{ github.event.inputs.release-type }} --no-git-tag-version) - NEW_VERSION_CLEAN=${NEW_VERSION#v} - echo "current_version=$CURRENT_VERSION" >> $GITHUB_ENV - echo "new_version=$NEW_VERSION_CLEAN" >> $GITHUB_ENV - - - name: Update Dependencies and Version - run: | - npm install - git add package.json package-lock.json - git commit -m "chore: bump version to ${{ env.new_version }}" || echo "No changes to commit" - - - name: Push Changes to dev - run: | - git push origin dev - - - name: Create Pull Request to main - uses: peter-evans/create-pull-request@v7 - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: "chore: bump version to ${{ env.new_version }}" - base: main - branch: dev - title: "Release v${{ env.new_version }}" - body: "Automated release PR for version ${{ env.new_version }}" - delete-branch: false - draft: false - labels: 'release, automated' - reviewers: 'EvanNotFound' - assignees: 'EvanNotFound' - - - name: Create GitHub Release (Draft) - uses: ncipollo/release-action@v1 - with: - tag: "v${{ env.new_version }}" - name: "v${{ env.new_version }}" - body: "Release v${{ env.new_version }}" - draft: true - prerelease: false \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 3c8f46b4..0187e88a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hexo-theme-redefine", - "version": "2.8.1", + "version": "2.8.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hexo-theme-redefine", - "version": "2.8.1", + "version": "2.8.2", "license": "GPL-3.0", "devDependencies": { "eslint": "^8.47.0", diff --git a/package.json b/package.json index de826126..d4ad8880 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-theme-redefine", - "version": "2.8.1", + "version": "2.8.2", "private": false, "description": "Redefine your writing with Hexo Theme Redefine.", "scripts": {