forked from kitschpatrol/shared-config
-
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.
* reset to version 1.0.0 * update namespaces * update license and attribution * remove remark config * update cspell config * update eslint config * update prettier config * lint/format root files * format repo * force eslint to use root config * linting * separate ignores from eslint config * use gitignore from repo-config * update dictionary * fix linting issues * update stylelint config * update recommended extensions * format readme * fix linting issues * update readme * updates * updates * update recommended workspace extensions
- Loading branch information
1 parent
d489fe0
commit 84b6f24
Showing
107 changed files
with
2,931 additions
and
8,977 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"import": "@kitschpatrol/cspell-config", | ||
"ignorePaths": ["/packages/*/init/*.json", "/packages/*/bin"] | ||
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | ||
"import": "@envsa/cspell-config", | ||
"ignorePaths": ["/packages/*/init/*.json", "/packages/*/bin"], | ||
"words": [] | ||
} |
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 |
---|---|---|
@@ -1,81 +1,81 @@ | ||
name: Create GitHub Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]*' | ||
push: | ||
tags: | ||
- "v[0-9]*" | ||
|
||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} | ||
IS_VALID_COMMIT: false | ||
TAG_NAME: '' | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN || secrets.GITHUB_TOKEN }} | ||
IS_VALID_COMMIT: false | ||
TAG_NAME: "" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Log Token Type | ||
run: | | ||
if [ ${{ env.ACCESS_TOKEN }} == ${{ secrets.GITHUB_TOKEN }} ]; then | ||
echo "🗝️ Authenticated with GitHub Token" | ||
else | ||
echo "🔑 Authenticated with Personal Access token" | ||
fi | ||
- name: Log Token Type | ||
run: | | ||
if [ ${{ env.ACCESS_TOKEN }} == ${{ secrets.GITHUB_TOKEN }} ]; then | ||
echo "🗝️ Authenticated with GitHub Token" | ||
else | ||
echo "🔑 Authenticated with Personal Access token" | ||
fi | ||
- name: Validate Tag and Branch | ||
id: validation | ||
run: | | ||
TAG=$(git tag --contains HEAD | grep '^v[0-9]' | head -n 1) | ||
echo "🏷️ Tag for commit is: $TAG" | ||
BRANCH=$(git branch -r --contains tags/${GITHUB_REF_NAME} | grep 'origin/main' | xargs) | ||
if [[ -z "$BRANCH" ]]; then | ||
echo "🚨 Tag is not on main branch" | ||
else | ||
echo "🕊️ Current branch is: $BRANCH" | ||
fi | ||
if [[ -z "$TAG" || -z "$BRANCH" ]]; then | ||
echo "IS_VALID_COMMIT=false" >> $GITHUB_ENV | ||
echo "TAG_NAME=''" >> $GITHUB_ENV | ||
else | ||
echo "IS_VALID_COMMIT=true" >> $GITHUB_ENV | ||
echo "TAG_NAME=$TAG" >> $GITHUB_ENV | ||
fi | ||
- name: Validate Tag and Branch | ||
id: validation | ||
run: | | ||
TAG=$(git tag --contains HEAD | grep '^v[0-9]' | head -n 1) | ||
echo "🏷️ Tag for commit is: $TAG" | ||
BRANCH=$(git branch -r --contains tags/${GITHUB_REF_NAME} | grep 'origin/main' | xargs) | ||
if [[ -z "$BRANCH" ]]; then | ||
echo "🚨 Tag is not on main branch" | ||
else | ||
echo "🕊️ Current branch is: $BRANCH" | ||
fi | ||
if [[ -z "$TAG" || -z "$BRANCH" ]]; then | ||
echo "IS_VALID_COMMIT=false" >> $GITHUB_ENV | ||
echo "TAG_NAME=''" >> $GITHUB_ENV | ||
else | ||
echo "IS_VALID_COMMIT=true" >> $GITHUB_ENV | ||
echo "TAG_NAME=$TAG" >> $GITHUB_ENV | ||
fi | ||
- name: Release Notes | ||
if: env.IS_VALID_COMMIT == 'true' | ||
id: release-notes | ||
uses: kitschpatrol/github-action-release-changelog@v2 | ||
- name: Release Notes | ||
if: env.IS_VALID_COMMIT == 'true' | ||
id: release-notes | ||
uses: kitschpatrol/github-action-release-changelog@v2 | ||
|
||
- name: Release | ||
if: env.IS_VALID_COMMIT == 'true' | ||
id: release | ||
uses: kitschpatrol/github-action-release@v2 | ||
with: | ||
token: ${{ env.ACCESS_TOKEN }} | ||
draft: false | ||
prerelease: false | ||
name: ${{ env.TAG_NAME }} | ||
tag_name: ${{ env.TAG_NAME }} | ||
body: | | ||
${{ steps.release-notes.outputs.changelog }} | ||
files: | | ||
readme.md | ||
README.md | ||
LICENSE | ||
license.txt | ||
CHANGELOG | ||
CHANGELOG.md | ||
changelog.md | ||
- name: Release | ||
if: env.IS_VALID_COMMIT == 'true' | ||
id: release | ||
uses: kitschpatrol/github-action-release@v2 | ||
with: | ||
token: ${{ env.ACCESS_TOKEN }} | ||
draft: false | ||
prerelease: false | ||
name: ${{ env.TAG_NAME }} | ||
tag_name: ${{ env.TAG_NAME }} | ||
body: | | ||
${{ steps.release-notes.outputs.changelog }} | ||
files: | | ||
readme.md | ||
README.md | ||
LICENSE | ||
license.txt | ||
CHANGELOG | ||
CHANGELOG.md | ||
changelog.md | ||
- name: Log Release Details | ||
if: env.IS_VALID_COMMIT == 'true' | ||
run: | | ||
echo "📦 Successfully released: ${{ env.TAG_NAME }}" | ||
echo "🔗 Release URL: ${{ steps.release.outputs.url }}" | ||
echo "🪪 Release ID: ${{ steps.release.outputs.id }}" | ||
- name: Log Release Details | ||
if: env.IS_VALID_COMMIT == 'true' | ||
run: | | ||
echo "📦 Successfully released: ${{ env.TAG_NAME }}" | ||
echo "🔗 Release URL: ${{ steps.release.outputs.url }}" | ||
echo "🪪 Release ID: ${{ steps.release.outputs.id }}" |
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 |
---|---|---|
@@ -1,48 +1,48 @@ | ||
name: Overwrite GitHub repo metadata with info from package.json | ||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Sync Metadata | ||
runs-on: ubuntu-latest | ||
env: | ||
IS_VALID_TOKEN: false | ||
HAS_PACKAGE: false | ||
build: | ||
name: Sync Metadata | ||
runs-on: ubuntu-latest | ||
env: | ||
IS_VALID_TOKEN: false | ||
HAS_PACKAGE: false | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check for package.json | ||
run: | | ||
if [ -f package.json ]; then | ||
echo "📦 Found package.json" | ||
echo "HAS_PACKAGE=true" >> $GITHUB_ENV | ||
else | ||
echo "❌ This action requires a package.json to run" | ||
echo "HAS_PACKAGE=false" >> $GITHUB_ENV | ||
fi | ||
- name: Check for package.json | ||
run: | | ||
if [ -f package.json ]; then | ||
echo "📦 Found package.json" | ||
echo "HAS_PACKAGE=true" >> $GITHUB_ENV | ||
else | ||
echo "❌ This action requires a package.json to run" | ||
echo "HAS_PACKAGE=false" >> $GITHUB_ENV | ||
fi | ||
- name: Validate Access Token | ||
if: env.HAS_PACKAGE == 'true' | ||
run: | | ||
if [ -z ${{ secrets.PERSONAL_ACCESS_TOKEN }} ]; then | ||
echo "❌ This action requires a Personal Access token to run" | ||
echo "IS_VALID_TOKEN=false" >> $GITHUB_ENV | ||
else | ||
echo "🔑 Authenticated with Personal Access token" | ||
echo "IS_VALID_TOKEN=true" >> $GITHUB_ENV | ||
fi | ||
- name: Validate Access Token | ||
if: env.HAS_PACKAGE == 'true' | ||
run: | | ||
if [ -z ${{ secrets.PERSONAL_ACCESS_TOKEN }} ]; then | ||
echo "❌ This action requires a Personal Access token to run" | ||
echo "IS_VALID_TOKEN=false" >> $GITHUB_ENV | ||
else | ||
echo "🔑 Authenticated with Personal Access token" | ||
echo "IS_VALID_TOKEN=true" >> $GITHUB_ENV | ||
fi | ||
- name: Sync Package info to GitHub | ||
if: env.IS_VALID_TOKEN == 'true' && env.HAS_PACKAGE == 'true' | ||
uses: kitschpatrol/github-action-repo-sync@v2 | ||
with: | ||
TYPE: npm | ||
PATH: package.json | ||
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
- name: Sync Package info to GitHub | ||
if: env.IS_VALID_TOKEN == 'true' && env.HAS_PACKAGE == 'true' | ||
uses: kitschpatrol/github-action-repo-sync@v2 | ||
with: | ||
TYPE: npm | ||
PATH: package.json | ||
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
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 |
---|---|---|
@@ -1,21 +1,20 @@ | ||
# Git Ignore | ||
# Also used by CSpell and Stylelint | ||
|
||
# @kitschpatrol/repo-config boilerplate | ||
.astro/ | ||
# @envsa/repo-config boilerplate | ||
.DS_Store | ||
.ddev/ | ||
.env | ||
.env.* | ||
!.env.example | ||
.svelte-kit/ | ||
{tmp,temp}/ | ||
**/*.min.js | ||
/scratch/ | ||
bower_components/ | ||
node_modules/ | ||
vendor/ | ||
build/ | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
vendor/ | ||
**/*.min.js | ||
tmp/ | ||
temp/ | ||
_junk/ | ||
|
||
# Customizations |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import mdatConfig from '@kitschpatrol/mdat-config' | ||
import { mergeConfigs } from 'mdat' | ||
import mdatConfig from '@envsa/mdat-config'; | ||
import { mergeConfigs } from 'mdat'; | ||
|
||
export default mergeConfigs(mdatConfig, { | ||
// Custom mdat config goes here | ||
}) | ||
// Custom mdat config goes here | ||
}); |
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
publish-branch=main | ||
|
||
# Required for using @kitschpatrol/shared-config with pnpm | ||
public-hoist-pattern[]=@kitschpatrol/repo-config | ||
# Required for using @envsa/shared-config with pnpm | ||
public-hoist-pattern[]=@envsa/repo-config | ||
public-hoist-pattern[]=*cspell* | ||
public-hoist-pattern[]=*eslint* | ||
public-hoist-pattern[]=*mdat* | ||
public-hoist-pattern[]=*prettier* | ||
public-hoist-pattern[]=*remark* | ||
public-hoist-pattern[]=*stylelint* |
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
Oops, something went wrong.