build(deps-dev): bump @typescript-eslint/parser from 8.18.1 to 8.18.2β¦ #3575
This file contains 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: build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Install | |
uses: pnpm/[email protected] | |
with: | |
version: 9 | |
run_install: true | |
- name: Lint | |
run: | | |
pnpm run lint | |
- name: Test | |
env: | |
CI: true | |
run: | | |
pnpm run test --coverage | |
- name: Prebuild | |
run: | | |
pnpm run build | |
- name: Release | |
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
pnpm run release | |
# After release plugin pushes to gh-pages | |
- name: Get Latest Tag | |
id: latest_tag | |
run: | | |
git fetch --all | |
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1)) | |
echo "tag=$latest_tag" >> $GITHUB_OUTPUT | |
- name: Check Existing Tag | |
id: check_tag | |
run: | | |
tag=${{ steps.latest_tag.outputs.tag }} | |
new_tag=${tag#"v"} | |
if git rev-parse $new_tag >/dev/null 2>&1; then | |
echo "Tag $new_tag already exists" | |
echo "tag_exists=true" >> $GITHUB_OUTPUT | |
else | |
echo "new_tag=$new_tag" >> $GITHUB_OUTPUT | |
echo "tag_exists=false" >> $GITHUB_OUTPUT | |
fi | |
- name: Retag Commit | |
id: retag | |
run: | | |
git checkout gh-pages | |
git checkout - | |
new_tag=${{ steps.check_tag.outputs.new_tag }} | |
if [[ "${{ steps.check_tag.outputs.tag_exists }}" == "true" ]]; then | |
echo "Tag $new_tag already exists, skipping retag" | |
echo "retag_success=false" >> $GITHUB_OUTPUT | |
else | |
git tag $new_tag gh-pages | |
echo "retag_success=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Push Tag | |
id: push_tag | |
if: steps.retag.outputs.retag_success == 'true' | |
run: | | |
git push origin ${{ steps.check_tag.outputs.new_tag }} | |
echo "push_success=true" >> $GITHUB_OUTPUT | |
- name: Release Tag | |
uses: softprops/action-gh-release@v1 | |
if: steps.push_tag.outputs.push_success == 'true' | |
with: | |
name: ${{ steps.latest_tag.outputs.tag }} | |
tag_name: ${{ steps.check_tag.outputs.new_tag }} | |
target_commitish: gh-pages |