Skip to content

Commit

Permalink
feat: use github release instead of gren
Browse files Browse the repository at this point in the history
  • Loading branch information
jgazeau committed Aug 6, 2022
1 parent 7b9ab90 commit 94b7d83
Show file tree
Hide file tree
Showing 6 changed files with 3,247 additions and 13,741 deletions.
26 changes: 26 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
changelog:
exclude:
labels:
- tags/releases
- duplicate
- wontfix
- invalid
categories:
- title: New features 🎉
labels:
- feature
- title: Bug Fixes 🔨
labels:
- bug
- title: Enhancements 🔧
labels:
- enhancement
- title: Documentation 📚
labels:
- documentation
- title: Internal
labels:
- internal
- title: Other Changes
labels:
- "*"
25 changes: 0 additions & 25 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,6 @@ jobs:
ref: 'main'
submodules: recursive
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- name: Generate changelog
env:
GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export TAG_NAME=${GITHUB_REF##*/}
printf "%70s\n" | tr ' ' '-'
npm ci
printf "%70s\n" | tr ' ' '-'
npx gren changelog --generate --override --tags=all
npm version ${TAG_NAME} --no-git-tag-version
printf "%70s\n" | tr ' ' '-'
git add package.json
git add package-lock.json
git add ${CHANGELOG_FILE}
printf "%70s\n" | tr ' ' '-'
git config --local user.name "GitHub Action"
git config --local user.email "action@github.com"
git commit -m "tag/${TAG_NAME}"
git tag ${TAG_NAME}
git push
git push -f origin ${TAG_NAME}
- name: Publish on Npm
uses: JS-DevTools/npm-publish@v1
with:
Expand Down
22 changes: 0 additions & 22 deletions .grenrc.yml

This file was deleted.

79 changes: 0 additions & 79 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 94b7d83

Please sign in to comment.