diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 521efc9..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Publish - -on: - pull_request: - branches: [main] - types: [closed] - -jobs: - version-bump: - if: startsWith(github.event.pull_request.title, 'v') && github.event.pull_request.merged == true - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 \ No newline at end of file diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml deleted file mode 100644 index 86b01b2..0000000 --- a/.github/workflows/version.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Version Bump - -on: - pull_request: - branches: [main] - types: [opened] - -jobs: - version-bump: - if: startsWith(github.event.pull_request.title, 'v') - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup git - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - - - name: Extract version from PR title - id: extract-version - run: | - if [[ "${{ github.event.pull_request.title }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - echo "version=${BASH_REMATCH[0]}" >> $GITHUB_OUTPUT - else - echo "❌ No valid version found in PR title" - exit 1 - fi - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - - - name: Bump version - run: | - VERSION=${{ steps.extract-version.outputs.version }} - pnpm version $VERSION --no-git-tag-version - - - name: Push changes - run: | - VERSION=${{ steps.extract-version.outputs.version }} - git add package.json pnpm-lock.yaml - git commit -m "chore: bump version to v$VERSION" - git push https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/koderpark/ani-relayer.git HEAD:develop --follow-tags \ No newline at end of file diff --git a/package.json b/package.json index 4eff8d0..9803d0f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ani-relayer", "displayName": "Ani Relayer", - "version": "0.0.2", + "version": "0.0.3", "description": "Laftel.net의 비공식 동시시청 확장프로그램.", "author": "koderpark", "scripts": { @@ -42,4 +42,4 @@ ], "minimum_chrome_version": "116" } -} \ No newline at end of file +}