generated from theholocron/node-template
-
-
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.
* feat: 💚 add in alex Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * 🔀 feat: 👷 add in annotations for super linter Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 update ci workflows Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 more yaml errors Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: 💚 update name of workflow Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 one more attempt for labeler Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 update with dependencies Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 separate out job Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 clean up workflows Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * feat: 👷 update with review action Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 bad formed action Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 review build job Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 update ci build to fix reviewdog Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: 🚨 fix linter complaints Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 more fixes Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 remove checks that aren't setup Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 labeler Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * feat: 💚 add in action lint Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 fix labeler Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> --------- Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
- Loading branch information
Showing
15 changed files
with
295 additions
and
111 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Issues Bookkeeping | ||
|
||
# @TODO: add in more things like: | ||
# - [ ] auto-assigning, | ||
# - [ ] project assignments, | ||
# - [ ] milestone assignments | ||
# - [ ] cleans up language | ||
# - [ ] checks that template is filled out | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
- edited | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
jobs: | ||
label-issues: | ||
name: Add Labels to Issues | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/issue-labeler@v3.4 | ||
with: | ||
include-title: 1 | ||
include-body: 0 | ||
sync-labels: 1 | ||
configuration-path: .github/labeler.yml | ||
enable-versioned-regex: 0 | ||
repo-token: ${{ github.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: PR Bookkeeping | ||
|
||
# @TODO: add in more things like: | ||
# - [ ] auto-assigning, | ||
# - [ ] project assignments, | ||
# - [ ] milestone assignments | ||
# - [ ] cleans up language | ||
# - [ ] checks that template is filled out | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
jobs: | ||
label-pr: | ||
name: Add Labels to PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: github/issue-labeler@v3.4 | ||
with: | ||
include-title: 1 | ||
include-body: 0 | ||
sync-labels: 1 | ||
configuration-path: .github/labeler.yml | ||
enable-versioned-regex: 0 | ||
repo-token: ${{ github.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
github-pages: | ||
name: Publish Storybook to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 | ||
id: deploy-github-pages | ||
name: Publish Storybook to GitHub Pages | ||
with: | ||
build_command: npm run build:storybook | ||
install_command: npm ci | ||
path: storybook-static | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deploy-github-pages.outputs.page_url }} | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
github-packages: | ||
name: Publish to GitHub Packages | ||
permissions: | ||
contents: read | ||
packages: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout repository | ||
|
||
- uses: actions/setup-node@v4 | ||
name: Setup Node.js @v20 | ||
with: | ||
cache: npm | ||
node-version: 20.x | ||
registry-url: https://npm.pkg.github.com/ | ||
|
||
- run: npm ci | ||
name: Install dependencies | ||
- run: npm ci | ||
|
||
- run: npm publish | ||
name: Publish to GitHub Packages | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Review | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
reviewdog: | ||
name: Review PRs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout repository | ||
|
||
- uses: actions/setup-node@v4 | ||
name: Setup Node.js @v20 | ||
with: | ||
cache: npm | ||
node-version: 20.x | ||
|
||
- run: npm ci | ||
name: Install dependencies | ||
|
||
- uses: reviewdog/action-setup@v1 | ||
name: Install & setup ReviewDog | ||
with: | ||
reviewdog_version: latest # Optional. [latest,nightly,v.X.Y.Z] | ||
|
||
- uses: reviewdog/action-gitleaks@v1 | ||
name: Detect secrets using Gitleaks | ||
with: | ||
reporter: github-pr-check | ||
|
||
- uses: reviewdog/action-alex@v1 | ||
name: Check language using Alex | ||
with: | ||
reporter: github-pr-check # [github-pr-check,github-check,github-pr-review] | ||
# GitHub Status Check won't become failure with warning. | ||
# level: warning # [info,warning, error] | ||
|
||
- uses: EPMatt/reviewdog-action-tsc@v1 | ||
name: Check types using TypeScript | ||
with: | ||
reporter: github-pr-check | ||
|
||
- uses: reviewdog/action-stylelint@v1 | ||
name: Check CSS using StyleLint | ||
with: | ||
reporter: github-pr-check | ||
stylelint_input: '**/*.css' | ||
|
||
# need to setup textlint in the repo for this | ||
# - uses: tsuyoshicho/action-textlint@v3 | ||
# name: Check text using TextLint | ||
# with: | ||
# reporter: github-pr-check | ||
|
||
- uses: reviewdog/action-actionlint@v1 | ||
name: Check GitHub Actions using ActionLint | ||
with: | ||
reporter: github-pr-check | ||
|
||
- uses: dotenv-linter/action-dotenv-linter@v2 | ||
name: Check environment variables using dotenv | ||
with: | ||
reporter: github-code-suggestions | ||
|
||
- uses: reviewdog/action-yamllint@v1 | ||
name: Check YAML using YamlLint | ||
with: | ||
reporter: github-pr-check |
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.