Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirherobrine23 authored Apr 23, 2022
1 parent cba4f22 commit d0e709b
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,15 @@ jobs:
run: npm install -no-save

- name: Create Changelog
run: |
set -ex
npm run release -- --version "${{ github.event.inputs.version }}"
if git diff --name-only --exit-code; then
echo "No changes to commit"
else
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name "${{ github.actor }}"
git add .
git commit -m 'Release ${{ github.event.inputs.version }}'
git push
fi
run: npm run release -- --version "${{ github.event.inputs.version }}"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: Update version v${{ github.event.inputs.version }}
title: Update package version v${{ github.event.inputs.version }}
body: Auto update package version, created with GitHub Actions
branch: update-version

- name: Create release
uses: softprops/action-gh-release@v1
Expand All @@ -110,4 +107,4 @@ jobs:
name: v${{ github.event.inputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
draft: false
draft: false

0 comments on commit d0e709b

Please sign in to comment.