Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use github release instead of gren #35

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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