-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new CI workflows * eslint * dropped semantic-release for release drafter
- Loading branch information
Showing
27 changed files
with
742 additions
and
617 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name-template: 'v$RESOLVED_VERSION' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
template: | | ||
## What Changed 👀 | ||
$CHANGES | ||
# Extra | ||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION | ||
categories: | ||
- title: 🚀 Features | ||
labels: | ||
- feature | ||
- enhancement | ||
- title: 🐛 Bug Fixes | ||
labels: | ||
- fix | ||
- bug | ||
- title: ⚠️ Changes | ||
labels: | ||
- changed | ||
- title: ⛔️ Deprecated | ||
labels: | ||
- deprecated | ||
- title: 🗑 Removed | ||
labels: | ||
- removed | ||
- title: 🔐 Security | ||
labels: | ||
- security | ||
- title: 📄 Documentation | ||
labels: | ||
- docs | ||
- documentation | ||
- title: 🧩 Dependency Updates | ||
labels: | ||
- deps | ||
- dependencies | ||
collapse-after: 5 | ||
prerelease-identifier: 'beta' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
version-resolver: | ||
major: | ||
labels: | ||
- major | ||
minor: | ||
labels: | ||
- minor | ||
patch: | ||
labels: | ||
- patch | ||
default: patch | ||
exclude-labels: | ||
- skip-changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
name: Release and Publish | ||
on: | ||
release: | ||
types: | ||
- released | ||
|
||
permissions: | ||
contents: write | ||
actions: write | ||
checks: write | ||
id-token: write | ||
|
||
jobs: | ||
Test: | ||
uses: ./.github/workflows/action-test.yaml | ||
|
||
Strip_Version: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
CLEAN_TAG: ${{ steps.set-output.outputs.CLEAN_TAG }} | ||
steps: | ||
- name: Strip "v" from Tag | ||
id: set-output | ||
run: echo "CLEAN_TAG=${GITHUB_EVENT_RELEASE_TAG_NAME#v}" >> $GITHUB_OUTPUT | ||
env: | ||
GITHUB_EVENT_RELEASE_TAG_NAME: ${{ github.event.release.tag_name }} | ||
|
||
Publish: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
GIT_BRANCH_TARGET: ${{ steps.set-npm-tag.outputs.GIT_BRANCH_TARGET }} | ||
needs: ['Test', 'Strip_Version'] | ||
env: | ||
CLEAN_TAG: ${{ needs.Strip_Version.outputs.CLEAN_TAG }} | ||
steps: | ||
- name: Create Directory | ||
run: mkdir -p ./lib | ||
|
||
- name: Download the build artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cache | ||
path: ./ | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
registry-url: 'https://registry.npmjs.org/' | ||
|
||
- name: Update Version in Package.json | ||
id: set-npm-tag | ||
run: | | ||
npm version $CLEAN_TAG --no-git-tag-version | ||
if [[ "$CLEAN_TAG" == *"beta"* ]]; then | ||
echo "NPM_TAG=beta" >> $GITHUB_OUTPUT | ||
echo "GIT_BRANCH_TARGET=develop" >> $GITHUB_OUTPUT | ||
else | ||
echo "NPM_TAG=latest" >> $GITHUB_OUTPUT | ||
echo "GIT_BRANCH_TARGET=main" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Publish to npm | ||
uses: JS-DevTools/npm-publish@v3 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
tag: ${{ steps.set-npm-tag.outputs.NPM_TAG }} | ||
|
||
Update_Repo: | ||
runs-on: ubuntu-latest | ||
needs: ['Test', 'Strip_Version', 'Publish'] | ||
permissions: | ||
contents: write | ||
actions: write | ||
checks: write | ||
env: | ||
CLEAN_TAG: ${{ needs.Strip_Version.outputs.CLEAN_TAG }} | ||
GIT_BRANCH_TARGET: ${{ needs.Publish.outputs.GIT_BRANCH_TARGET }} | ||
steps: | ||
# - uses: hmarr/debug-action@v3 | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
token: '${{ secrets.GITHUB_TOKEN }}' | ||
ref: ${{ env.GIT_BRANCH_TARGET }} | ||
sparse-checkout: | | ||
package.json | ||
CHANGELOG.md | ||
sparse-checkout-cone-mode: false | ||
|
||
- name: Update Version in Package.json | ||
id: set-git-branch | ||
run: npm version $CLEAN_TAG --no-git-tag-version | ||
|
||
- name: Update Changelog | ||
uses: stefanzweifel/changelog-updater-action@v1 | ||
with: | ||
latest-version: ${{ github.event.release.name }} | ||
release-notes: ${{ github.event.release.body }} | ||
|
||
- name: Commit and Push Version Update | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "chore(release): ${{ github.event.release.tag_name }} [skip ci]" | ||
|
||
Document: | ||
needs: ['Update_Repo', 'Publish'] | ||
uses: ./.github/workflows/action-docs.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.