mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-07-06 19:51:27 +00:00
add name and version to package.json
This commit is contained in:
parent
0bcc804089
commit
a7d99725c2
2 changed files with 22 additions and 7 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
name: Empty CHANGELOG.md
|
name: Post-Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
empty-changelog:
|
post-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -15,14 +15,23 @@ jobs:
|
||||||
ref: ${{ github.event.repository.default_branch }}
|
ref: ${{ github.event.repository.default_branch }}
|
||||||
fetch-depth: 0
|
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
|
- name: Empty CHANGELOG.md
|
||||||
|
run: |
|
||||||
|
rm CHANGELOG.md
|
||||||
|
touch CHANGELOG.md
|
||||||
|
|
||||||
|
- name: Commit
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "action@github.com"
|
git config --global user.email "action@github.com"
|
||||||
git config --global user.name "github-actions"
|
git config --global user.name "github-actions"
|
||||||
|
|
||||||
rm CHANGELOG.md
|
git add .
|
||||||
touch CHANGELOG.md
|
git commit --allow-empty -m "Release v${{ env.DRIBBBLISH_VERSION }}"
|
||||||
|
|
||||||
git add CHANGELOG.md
|
|
||||||
git commit --allow-empty -m "Empty CHANGELOG.md after v$(git describe --tags --abbrev=0)"
|
|
||||||
git push
|
git push
|
||||||
|
|
@ -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": {
|
"devDependencies": {
|
||||||
"clean-webpack-plugin": "^4.0.0",
|
"clean-webpack-plugin": "^4.0.0",
|
||||||
"copy-webpack-plugin": "^9.0.1",
|
"copy-webpack-plugin": "^9.0.1",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue