Skip to content

Commit

Permalink
Update GitHub template files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 25, 2024
1 parent 4eaae8d commit 54a7359
Show file tree
Hide file tree
Showing 12 changed files with 107 additions and 44 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "trueberryless-org/starlight-view-modes" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
16 changes: 15 additions & 1 deletion .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,24 @@ jobs:
tag: ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }}
makeLatest: true
body: ${{ steps.extract-changelog.outputs.markdown }}
skipIfReleaseExists: true

- name: Check if release was created
id: check_release
run: |
if [ -z "${{ steps.create_release.outputs.html_url }}" ]; then
echo "RELEASE_SKIPPED=true" >> $GITHUB_ENV
else
echo "RELEASE_SKIPPED=false" >> $GITHUB_ENV
fi
- name: Discord notification
if: env.RELEASE_SKIPPED == 'false'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
uses: Ilshidur/action-discord@0.3.2
with:
args: "# ${{ env.IMAGE_NAME }}-docs@${{ needs.image-tag.outputs.IMAGE_TAG }}\n\n${{ steps.extract-changelog.outputs.markdown }}"
args: |
# ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }}
${{ steps.extract-changelog.outputs.markdown }}
17 changes: 16 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,29 @@ jobs:
pattern: ${{ needs.image-tag.outputs.IMAGE_TAG }}

- uses: ncipollo/release-action@v1
id: create_release
with:
tag: ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }}
makeLatest: true
body: ${{ steps.extract-changelog.outputs.markdown }}
skipIfReleaseExists: true

- name: Check if release was created
id: check_release
run: |
if [ -z "${{ steps.create_release.outputs.html_url }}" ]; then
echo "RELEASE_SKIPPED=true" >> $GITHUB_ENV
else
echo "RELEASE_SKIPPED=false" >> $GITHUB_ENV
fi
- name: Discord notification
if: env.RELEASE_SKIPPED == 'false'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
uses: Ilshidur/action-discord@0.3.2
with:
args: "# ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }}\n\n${{ steps.extract-changelog.outputs.markdown }}"
args: |
# ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }}
${{ steps.extract-changelog.outputs.markdown }}
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css"
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 trueberryless
Copyright (c) 2024-present, trueberryless

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion manifest/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
name: acme-issuer
kind: ClusterIssuer
dnsNames:
- 'starlight-view-modes.trueberryless.org'
- "starlight-view-modes.trueberryless.org"
2 changes: 1 addition & 1 deletion manifest/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ spec:
spec:
containers:
- name: starlight-view-modes
image: 'trueberryless/starlight-view-modes:main-59fd3a1cf21fb7a227f700d021f7f78e582d21fb'
image: "trueberryless/starlight-view-modes"
imagePullPolicy: Always
6 changes: 3 additions & 3 deletions manifest/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ spec:
number: 80

tls:
- hosts:
- starlight-view-modes.trueberryless.org
secretName: starlight-view-modes
- hosts:
- starlight-view-modes.trueberryless.org
secretName: starlight-view-modes
70 changes: 37 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,39 @@
{
"name": "starlight-view-modes",
"author": "trueberryless (https://trueberryless.org)",
"version": "0.1.0",
"license": "MIT",
"description": "Starlight plugin adding view mode capabilities to your documentation website.",
"type": "module",
"scripts": {},
"devDependencies": {
"typescript": "5.4.2"
},
"engines": {
"node": ">=18"
},
"packageManager": "pnpm@9.3.0",
"private": true,
"sideEffects": false,
"keywords": [
"starlight",
"plugin",
"zen",
"view",
"mode",
"zen-mode",
"view-modes",
"documentation"
],
"homepage": "https://starlight-view-modes.trueberryless.org",
"repository": {
"type": "git",
"url": "https://github.com/trueberryless/starlight-view-modes.git",
"directory": "packages/starlight-view-modes"
},
"bugs": "https://github.com/trueberryless/starlight-view-modes/issues"
"name": "starlight-view-modes",
"version": "0.1.0",
"private": true,
"description": "Starlight plugin adding view mode capabilities to your documentation website.",
"keywords": [
"starlight",
"plugin",
"zen",
"view",
"mode",
"zen-mode",
"view-modes",
"documentation"
],
"homepage": "https://starlight-view-modes.trueberryless.org",
"bugs": "https://github.com/trueberryless/starlight-view-modes/issues",
"repository": {
"type": "git",
"url": "https://github.com/trueberryless/starlight-view-modes.git",
"directory": "packages/starlight-view-modes"
},
"license": "MIT",
"author": "trueberryless (https://trueberryless.org)",
"sideEffects": false,
"type": "module",
"scripts": {
"version": "pnpm changeset version && pnpm i --no-frozen-lockfile"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"typescript": "5.4.2"
},
"packageManager": "pnpm@9.6.0",
"engines": {
"node": ">=18"
}
}
2 changes: 1 addition & 1 deletion packages/starlight-view-modes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ A [Starlight](https://starlight.astro.build) plugin adding view mode capabilitie

## License

Licensed under the MIT license, Copyright © trueberryless-org.
Licensed under the MIT license, Copyright © trueberryless.

See [LICENSE](/LICENSE) for more information.
4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- "docs"
- "packages/**/*"
- "docs/"
- "packages/*"

0 comments on commit 54a7359

Please sign in to comment.