Skip to content

Merge branch 'main' of https://github.com/Gautham495/react-native-nit… #4

Merge branch 'main' of https://github.com/Gautham495/react-native-nit…

Merge branch 'main' of https://github.com/Gautham495/react-native-nit… #4

Workflow file for this run

name: Create GitHub Release on npm Publish
on:
push:
branches:
- main
jobs:
publish-release:
name: Sync GitHub Release with npm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract package version
id: pkg
run: |
VERSION=$(jq -r .version package.json)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: "v${{ steps.pkg.outputs.version }}"
name: "Release ${{ steps.pkg.outputs.version }}"
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}