Skip to content

Commit

Permalink
chore: init repo config
Browse files Browse the repository at this point in the history
  • Loading branch information
rellafella committed Feb 17, 2025
1 parent 5d1ab87 commit f53d32d
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 115 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ jobs:
echo "🕊️ Current branch is: $BRANCH"
fi
if [[ -z "$TAG" || -z "$BRANCH" ]]; then
echo "IS_VALID_COMMIT=false" >> $GITHUB_ENV
echo "TAG_NAME=''" >> $GITHUB_ENV
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
echo "IS_VALID_COMMIT=true" >> "$GITHUB_ENV"
echo "TAG_NAME=$TAG" >> "$GITHUB_ENV"
fi
- name: Release Notes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Overwrite GitHub repo metadata with info from package.json
name: Set GitHub Metadata
on:
push:
branches: [main]
workflow_dispatch:
workflow_dispatch: {}

jobs:
build:
name: Sync Metadata
name: Set GitHub Metadata
runs-on: ubuntu-latest
env:
IS_VALID_TOKEN: false
Expand All @@ -22,21 +22,21 @@ jobs:
run: |
if [ -f package.json ]; then
echo "📦 Found package.json"
echo "HAS_PACKAGE=true" >> $GITHUB_ENV
echo "HAS_PACKAGE=true" >> "$GITHUB_ENV"
else
echo "❌ This action requires a package.json to run"
echo "HAS_PACKAGE=false" >> $GITHUB_ENV
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
echo "IS_VALID_TOKEN=false" >> "$GITHUB_ENV"
else
echo "🔑 Authenticated with Personal Access token"
echo "IS_VALID_TOKEN=true" >> $GITHUB_ENV
echo "IS_VALID_TOKEN=true" >> "$GITHUB_ENV"
fi
- name: Sync Package info to GitHub
Expand Down
46 changes: 12 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,47 +1,25 @@
# Git Ignore
# Also used by CSpell and Stylelint
# Also used by CSpell, Stylelint, and ESLint

# @envsa/repo-config boilerplate
# =====
# Craft
# =====
.DS_Store
.env
.env.*
!.env.example
vendor/
.eslint-config-inspector
.svelte-kit/
{tmp,temp}/
**/*.min.js
/scratch/
bower_components/
build/
coverage/
dist/
/web/assets/*

# ======
# Builds
# ======
node_modules/
**/*.min.js

# =====
# Tests
# =====
vendor/
/test-results/
/playwright-report/
/playwright/.cache/

# ====
# Misc
# ====
.cache
.DS_Store
_junk/
tmp/
temp/
.project
.settings
*.esproj
*.sublime-workspace
*.sublime-project
*.tmproj
*.tmproject
config.codekit3
prepros-6.config

# Customizations
dist/
build/
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ publish-branch=main
public-hoist-pattern[]=@envsa/browserslist-config
public-hoist-pattern[]=@envsa/repo-config
public-hoist-pattern[]=@envsa/typescript-config
public-hoist-pattern[]=case-police
public-hoist-pattern[]=*cspell*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*knip*
public-hoist-pattern[]=*mdat*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*remark*
public-hoist-pattern[]=*stylelint*
4 changes: 3 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"yoavbls.pretty-ts-errors",
"bradlc.vscode-tailwindcss",
"EditorConfig.EditorConfig",
"moetelo.twiggy"
"zepich.twig-braces-helper",
"mblode.twig-language-2",
"Chaxwell.twig-link-resolver"
]
}
11 changes: 9 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"explorer.fileNesting.patterns": {
".env": ".env.*",
"package.json": ".*.cjs, .*.js, .*.json, .*.mjs, .*.toml, .*.ts, .*.yaml, .*.yml, .*ignore, .*rc, *config.cjs, *config.js, *config.json, *config.mjs, *config.toml, *config.ts, *config.yaml, *config.yml, .editorconfig, lerna.json, netlify.toml, package-lock.json, , pnpm*, turbo.json, vercel.json, workspace*, wrangler.toml, yarn.lock, yarn*",
"readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*"
"readme.md": "authors*, backers*, changelog*, citation*, code_of_conduct*, contributing*, contributors*, copying*, credits*, governance*, history*, license*, maintainers*, release_notes*, security*, sponsors*",
"composer.json": "composer.lock"
},
"less.validate": false,
"prettier.documentSelectors": [
Expand All @@ -57,7 +58,13 @@
"tailwindCSS.classAttributes": [".*Class.*"],
"tailwindCSS.experimental.classRegex": [
["compDefaults = \\{([^%]*) %\\}", ":\\s*?[\"'`]([^\"'`]*).*?,?"],
["[\\w]+\\.classList\\.(?:add|remove|replace|toggle)\\([\"'`]([^\"'`]*)[\"'`]\\)"]
[
"[\\w]+\\.classList\\.(?:add|remove|replace|toggle)\\([\"'`]([^\"'`]*)[\"'`]\\)",
"classList.(?:add|remove|toggle)\\(([^)]*)\\)",
"(?:'|\"|`)([^\"'`]*)(?:'|\"|`)"
],
["{%\\s+set\\s+.*[Cc]lass(?:es)?\\s+=\\s+['\"](.*)['\"]\\s+%}"],
["*[Cc]lass(?:es)?:\\s*['\"](.*)['\"]"]
],
"typescript.tsdk": "node_modules/typescript/lib",
"json.schemas": [
Expand Down
Loading

0 comments on commit f53d32d

Please sign in to comment.