Skip to content

Added a timestamp notice at the bottom of the editor (#58) #28

Added a timestamp notice at the bottom of the editor (#58)

Added a timestamp notice at the bottom of the editor (#58) #28

Workflow file for this run

## Creates a Github Release:
# If the version in the package.json file changed
# The Release notes will be inferred from the titles of all commits since the last Release
name: Create Github Release
on:
push:
branches:
- main
jobs:
CheckVersion:
runs-on: ubuntu-latest
outputs:
versionChanged: ${{ steps.check_version.outputs.changed }}
newVersion: ${{ steps.check_version.outputs.version }}
steps:
- name: Set up Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Check if version has been updated
id: check_version
uses: EndBug/version-check@v2
with:
diff-search: true
- name: Log version change
if: steps.check_version.outputs.changed == 'true'
run: 'echo "Version change found in commit ${{ steps.check_version.outputs.commit }}! New version: ${{ steps.check_version.outputs.version }}"'
CreateRelease:
needs: CheckVersion
if: needs.CheckVersion.outputs.versionChanged == 'true'
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create Release notes
run: |
echo "## What's Changed
" > RELEASE_NOTES.md
sed -n '/<!--Releasenotes start-->/,/<!--Releasenotes end-->/p' CHANGELOG.md >> RELEASE_NOTES.md
echo "
**[Full Changelog](CHANGELOG.md)**" >> RELEASE_NOTES.md
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ needs.CheckVersion.outputs.newVersion }}
name: v${{ needs.CheckVersion.outputs.newVersion }}
body_path: RELEASE_NOTES.md
RunDeployScript:
needs: CheckVersion
if: needs.CheckVersion.outputs.versionChanged == 'true'
uses: ./.github/workflows/deploy.yml