Skip to content

Bump npm from 10.9.1 to 10.9.2 (#406) #492

Bump npm from 10.9.1 to 10.9.2 (#406)

Bump npm from 10.9.1 to 10.9.2 (#406) #492

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