-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32ca945
commit 9c252cc
Showing
13 changed files
with
579 additions
and
463 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
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,31 +1,81 @@ | ||
name: Create Release | ||
name: Create GitHub Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
- '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: '' | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
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: 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: Bullrich/generate-release-changelog@master | ||
id: ReleaseNotes | ||
|
||
- name: Release | ||
if: env.IS_VALID_COMMIT == 'true' | ||
id: release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ env.ACCESS_TOKEN }} | ||
draft: false | ||
prerelease: false | ||
name: ${{ env.TAG_NAME }} | ||
tag_name: ${{ env.TAG_NAME }} | ||
body: | | ||
${{ steps.ReleaseNotes.outputs.changelog }} | ||
${{ 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 }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
publish-branch=main | ||
|
||
# required for pnpm | ||
# public-hoist-pattern[]=@types* TBD | ||
public-hoist-pattern[]=@kitschpatrol/npm-config | ||
# Required for using @kitschpatrol/shared-config with pnpm | ||
public-hoist-pattern[]=@kitschpatrol/repo-config | ||
public-hoist-pattern[]=@kitschpatrol/vscode-config | ||
public-hoist-pattern[]=*cspell* | ||
public-hoist-pattern[]=*remark* | ||
public-hoist-pattern[]=*eslint* | ||
public-hoist-pattern[]=*markdownlint* | ||
public-hoist-pattern[]=*prettier* | ||
public-hoist-pattern[]=*remark* | ||
public-hoist-pattern[]=*stylelint* | ||
|
||
public-hoist-pattern[]=*shared-config* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
# build output | ||
dist/ | ||
# generated types | ||
.astro/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
# Git Ignore | ||
# Also used by CSpell and Stylelint | ||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
# @kitschpatrol/repo-config boilerplate | ||
!.env.example | ||
.astro/ | ||
.DS_Store | ||
.env | ||
.env.* | ||
.svelte-kit/ | ||
{tmp,temp}/ | ||
**/*.min.js | ||
/scratch/ | ||
bower_components/ | ||
build/ | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
vendor/ | ||
|
||
# generated files ignored in workspace .gitignore | ||
# 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,24 +224,24 @@ | |
"@0b5vr/tweakpane-plugin-rotation": "^0.2.0", | ||
"@kitschpatrol/tweakpane-image-plugin": "^2.0.0", | ||
"@kitschpatrol/tweakpane-textarea-plugin": "^2.0.1", | ||
"@tweakpane/core": "^2.0.2", | ||
"@tweakpane/core": "^2.0.3", | ||
"@tweakpane/plugin-camerakit": "^0.3.0", | ||
"@tweakpane/plugin-essentials": "^0.2.1", | ||
"esm-env": "^1.0.0", | ||
"nanoid": "^5.0.4", | ||
"svelte-local-storage-store": "^0.6.4", | ||
"tweakpane": "^4.0.2", | ||
"tweakpane": "^4.0.3", | ||
"tweakpane-plugin-waveform": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@kitschpatrol/shared-config": "^4.0.0", | ||
"@kitschpatrol/shared-config": "^4.3.1", | ||
"@phenomnomnominal/tsquery": "^6.1.3", | ||
"@stkb/rewrap": "^0.1.0", | ||
"@sveltejs/adapter-static": "^3.0.0", | ||
"@sveltejs/kit": "^2.0.1", | ||
"@sveltejs/package": "^2.2.3", | ||
"@sveltejs/adapter-static": "^3.0.1", | ||
"@sveltejs/kit": "^2.0.6", | ||
"@sveltejs/package": "^2.2.4", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.1", | ||
"@types/eslint": "^8.44.9", | ||
"@types/eslint": "^8.56.0", | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/node": "^20.10.5", | ||
"bumpp": "^9.2.1", | ||
|
@@ -250,22 +250,22 @@ | |
"glob": "^10.3.10", | ||
"npm-run-all": "^4.1.5", | ||
"postcss-html": "^1.5.0", | ||
"publint": "^0.2.6", | ||
"publint": "^0.2.7", | ||
"read-package-up": "^11.0.0", | ||
"svelte": "^4.2.8", | ||
"svelte-check": "^3.6.2", | ||
"svelte-language-server": "^0.16.1", | ||
"svelte2tsx": "^0.6.27", | ||
"ts-morph": "^21.0.1", | ||
"tslib": "^2.6.2", | ||
"tsx": "^4.6.2", | ||
"tsx": "^4.7.0", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.10", | ||
"yaml": "^2.3.4" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@astrojs/[email protected].0": "patches/@[email protected].0.patch" | ||
"@astrojs/[email protected].1": "patches/@[email protected].1.patch" | ||
} | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.