add name and version to package.json

This commit is contained in:
Send_Nukez 2021-10-31 00:58:47 +02:00
parent 0bcc804089
commit a7d99725c2
2 changed files with 22 additions and 7 deletions

View file

@ -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

View file

@ -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",