Skip to content

Bump axios from 1.7.7 to 1.7.8 (#402) #489

Bump axios from 1.7.7 to 1.7.8 (#402)

Bump axios from 1.7.7 to 1.7.8 (#402) #489

name: Create Release
on:
push:
branches:
- main
paths:
- '**.json'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Version Number
run: echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
- name: Fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Check if version changed
run: |
if git rev-parse "v${VERSION}" >/dev/null 2>&1; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
fi
- name: Create Release
if: env.exists == 'false'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.VERSION }}
release_name: v${{ env.VERSION }}
draft: false
prerelease: false