chore(style): enable clippy for exist crates #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Version Check and Tag | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '**/package.json' | |
| - '**/Cargo.toml' | |
| permissions: | |
| contents: write | |
| jobs: | |
| check-and-tag: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.PAT_TOKEN }} # use pat to trigger release | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Set node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: lts/* | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Check Version and Create Tag | |
| id: version_check | |
| run: | | |
| # Run the check script, exit if no version changes | |
| if ! pnpm script check-version.ts; then | |
| echo "Version check failed - no new version to tag" | |
| echo "skip_tag=true" >> $GITHUB_OUTPUT | |
| exit 0 | |
| fi | |
| ls -la | |
| TAG_NAME=$(cat VERSION_INFO) | |
| echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT | |
| # Prevent tags dupe | |
| if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then | |
| echo "Tag $TAG_NAME already exists, skipping" | |
| echo "skip_tag=true" >> $GITHUB_OUTPUT | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git tag -a "$TAG_NAME" -m "release: $TAG_NAME" | |
| git push origin "$TAG_NAME" | |
| echo "Created new tag: $TAG_NAME" | |
| - name: Log Skip | |
| if: steps.version_check.outputs.skip_tag == 'true' | |
| run: echo "Skipped tag creation - version unchanged" |