diff --git a/.github/workflows/empty-changelog.yaml b/.github/workflows/post-release.yaml similarity index 52% rename from .github/workflows/empty-changelog.yaml rename to .github/workflows/post-release.yaml index 82d8b00..f6953ea 100644 --- a/.github/workflows/empty-changelog.yaml +++ b/.github/workflows/post-release.yaml @@ -1,11 +1,11 @@ -name: Empty CHANGELOG.md +name: Post-Release on: release: types: [published] jobs: - empty-changelog: + post-release: runs-on: ubuntu-latest steps: @@ -15,14 +15,23 @@ jobs: ref: ${{ github.event.repository.default_branch }} fetch-depth: 0 + - name: Put version in env + run: echo "DRIBBBLISH_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + + - name: Set package.json version + run: | + sed -i 's/"version":.*",/"version": "${{ env.DRIBBBLISH_VERSION }}",/' package.json + - name: Empty CHANGELOG.md + run: | + rm CHANGELOG.md + touch CHANGELOG.md + + - name: Commit run: | git config --global user.email "action@github.com" git config --global user.name "github-actions" - rm CHANGELOG.md - touch CHANGELOG.md - - git add CHANGELOG.md - git commit --allow-empty -m "Empty CHANGELOG.md after v$(git describe --tags --abbrev=0)" + git add . + git commit --allow-empty -m "Release v${{ env.DRIBBBLISH_VERSION }}" git push diff --git a/package.json b/package.json index 7b8fe24..5148993 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,10 @@ { + "name": "dribbblish-dynamic-theme", + "version": "3.0.1", + "homepage": "https://github.com/JulienMaille/dribbblish-dynamic-theme", + "bugs": { + "url": "https://github.com/JulienMaille/dribbblish-dynamic-theme/issues" + }, "devDependencies": { "clean-webpack-plugin": "^4.0.0", "copy-webpack-plugin": "^9.0.1",