Skip to content

chore(deps-dev): bump @types/node from 25.0.2 to 25.0.3 #246

chore(deps-dev): bump @types/node from 25.0.2 to 25.0.3

chore(deps-dev): bump @types/node from 25.0.2 to 25.0.3 #246

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened]
permissions:
checks: write
contents: write
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.17.0'
- run: npm ci
- run: npm run test
lint:
name: Run Linters
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.17.0'
- run: npm ci
- run: npm run lint
tag:
name: Tag Version
if: github.event_name == 'push' # only when merging into main
runs-on: ubuntu-latest
needs: [test, lint]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.17.0'
- name: Read version from package.json
id: version
run: |
VERSION="v$(node -p "require('./package.json').version")"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Check if tag already exists
id: check_tag
run: |
TAG_EXISTS=$(git ls-remote --tags origin ${{ steps.version.outputs.version }})
if [ -z "$TAG_EXISTS" ]; then
echo "exists=false" >> "$GITHUB_OUTPUT"
else
echo "exists=true" >> "$GITHUB_OUTPUT"
fi
- name: Create and push version tag
if: steps.check_tag.outputs.exists == 'false'
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
git tag ${{ steps.version.outputs.version }}
git push origin ${{ steps.version.outputs.version }}