-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Force the following filetypes to have unix eols, so Windows does not break them | ||
*.* text eol=lf | ||
|
||
# These files are text and should be normalized (Convert crlf => lf) | ||
.browserlistrc text | ||
*.js text | ||
*.xml text | ||
*.iml text | ||
*.jsx text | ||
*.ts text | ||
*.tsx text | ||
*.yml text | ||
*.yaml text | ||
*.nycrc text | ||
*.toml text | ||
*.pug text | ||
*.md text | ||
*.scss text | ||
*.sass text | ||
*.css text | ||
*.less text | ||
*.json text | ||
LICENSE text | ||
CHANGELOG text | ||
|
||
*.ico binary | ||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.webp binary | ||
*.mp3 binary | ||
*.wav binary | ||
*.gif binary | ||
*.gz binary | ||
*.tgz binary | ||
*.gz binary | ||
*.br binary | ||
*.tgz binary |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @Alorel |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# These are supported funding model platforms | ||
|
||
github: | ||
- Alorel | ||
custom: | ||
- "https://paypal.me/alorel" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Build | ||
description: Common build steps | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
registry-url: https://npm.pkg.github.com | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
shell: bash | ||
env: | ||
NODE_AUTH_TOKEN: ${{ github.token }} | ||
|
||
- name: Build | ||
shell: bash | ||
run: npm run rollup |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Release stable | ||
description: Releases changes to the branch | ||
inputs: | ||
changelog: | ||
description: changelog | ||
required: true | ||
major: | ||
required: true | ||
description: major version | ||
minor: | ||
required: true | ||
description: minor version | ||
patch: | ||
required: true | ||
description: patch version | ||
issues-closed: | ||
description: Issues closed by the release | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
path: release | ||
ref: release | ||
|
||
- working-directory: release | ||
shell: bash | ||
run: > | ||
rm -rvf * && | ||
cp -vr ../dist/* . && | ||
git add . && | ||
git commit -m "Sync with ${{ github.sha }} of ${{ github.ref_name }}" && | ||
git push; | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
prerelease: false | ||
generateReleaseNotes: false | ||
makeLatest: false | ||
commit: ${{ github.sha }} | ||
body: ${{ inputs.changelog }} | ||
tag: v${{ inputs.major }} | ||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
prerelease: false | ||
generateReleaseNotes: false | ||
makeLatest: false | ||
commit: ${{ github.sha }} | ||
body: ${{ inputs.changelog }} | ||
tag: v${{ inputs.major }}.${{ inputs.minor }} | ||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: false | ||
prerelease: false | ||
generateReleaseNotes: false | ||
commit: ${{ github.sha }} | ||
body: ${{ inputs.changelog }} | ||
tag: v${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }} | ||
|
||
- name: Notify | ||
if: ${{ inputs.issues-closed }} | ||
uses: ./dist/notify | ||
with: | ||
tag: v${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }} | ||
issues: ${{ inputs.issues-closed }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" | ||
commit-message: | ||
prefix: deps | ||
prefix-development: "deps(dev)" | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
commit-message: | ||
prefix: deps | ||
prefix-development: "deps(dev)" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: | ||
- version-update:semver-minor | ||
- version-update:semver-patch |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# https://github.com/Ezard/semantic-prs | ||
|
||
enabled: true | ||
commitsOnly: true | ||
types: | ||
- feat | ||
- fix | ||
- docs | ||
- refactor | ||
- build | ||
- ci | ||
- chore | ||
- deps | ||
scopes: | ||
- deps | ||
- deps-dev |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Dry run | ||
on: | ||
- pull_request | ||
jobs: | ||
dryrun: | ||
runs-on: ubuntu-latest | ||
name: Dry run | ||
permissions: | ||
packages: read | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: Build | ||
uses: ./.github/actions/build | ||
|
||
- uses: ./dist | ||
name: Parse release | ||
id: parse-release | ||
with: | ||
minor-types: | | ||
feat: Features | ||
patch-types: | | ||
fix: Bug Fixes | ||
trivial-types: | | ||
chore: Maintenance | ||
deps: Dependency updates | ||
ci: CI & Build | ||
build: CI & Build | ||
refactor: Refactors | ||
docs: Documentation |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- stable | ||
name: Release | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
name: Release | ||
permissions: | ||
packages: read | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: Build | ||
uses: ./.github/actions/build | ||
|
||
- uses: ./dist | ||
name: Parse release | ||
id: parse-release | ||
with: | ||
stay-at-zero: true | ||
minor-types: | | ||
feat: Features | ||
patch-types: | | ||
fix: Bug Fixes | ||
trivial-types: | | ||
chore: Maintenance | ||
deps: Dependency updates | ||
ci: CI & Build | ||
build: CI & Build | ||
refactor: Refactors | ||
docs: Documentation | ||
- name: Release | ||
uses: ./.github/actions/release-stable | ||
if: ${{ steps.parse-release.outputs.should-release && github.ref_name == 'stable' }} | ||
with: | ||
major: ${{ steps.parse-release.outputs.next-version-major }} | ||
minor: ${{ steps.parse-release.outputs.next-version-minor }} | ||
patch: ${{ steps.parse-release.outputs.next-version-patch }} | ||
changelog: ${{ steps.parse-release.outputs.changelog }} | ||
issues-closed: ${{ steps.parse-release.outputs.issues-closed }} | ||
|
||
- name: Generate next tag | ||
if: ${{ steps.parse-release.outputs.should-release && github.ref_name == 'master' }} | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true | ||
prerelease: true | ||
generateReleaseNotes: false | ||
makeLatest: false | ||
updateOnlyUnreleased: true | ||
name: Upcoming release | ||
commit: ${{ github.sha }} | ||
body: ${{ steps.parse-release.outputs.changelog }} | ||
tag: next |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
node_modules/ | ||
*.log | ||
/dist/ | ||
/release/ | ||
/.nyc_output | ||
/coverage | ||
|
||
/tmp.mjs | ||
/tmp.ts | ||
/tmp |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@alorel:registry=https://npm.pkg.github.com |