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.
fix: 💚 release build for versioning (#7)
* fix: 💚 release build for versioning Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 linting errors with build Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 💚 configuration for yamllint Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 🚨 yamllint Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 🚨 configuration for yamllint Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 🚨 one more attempt Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 🚨 yamllint and superlint are weird Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * fix: 🚨 fenagling comments linting Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> --------- Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
- Loading branch information
Showing
13 changed files
with
91 additions
and
15 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
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,6 +1,6 @@ | ||
name: Greetings | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
- pull_request | ||
- issues | ||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Release | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- main | ||
|
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 @@ | ||
name: Review | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
- push | ||
- pull_request | ||
|
||
|
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 @@ | ||
name: Stale | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
||
|
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 @@ | ||
name: Test | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
- push | ||
|
||
jobs: | ||
|
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,57 @@ | ||
name: Version | ||
|
||
# @TODO: check if this could replace changesets | ||
# if so, i can get rid of the publish command and changesets | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release: | ||
name: Version using Semantic Versioning | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
id: release | ||
with: | ||
release-type: node | ||
# The short ref name of the branch or tag that triggered | ||
# the workflow run. For example, `main` or `1.x` | ||
target-branch: ${{ github.ref_name }} | ||
|
||
# The logic below handles the npm publication: | ||
# - uses: actions/checkout@v4 | ||
# name: Checkout repository | ||
# # these if statements ensure that a publication only occurs when | ||
# # a new release is created: | ||
# if: ${{ steps.release.outputs.release_created }} | ||
|
||
# - uses: actions/setup-node@v4 | ||
# name: Setup Node.js @v20 | ||
# if: ${{ steps.release.outputs.release_created }} | ||
# with: | ||
# cache: npm | ||
# node-version: 20.x | ||
# registry-url: 'https://registry.npmjs.org' | ||
|
||
# - run: npm ci | ||
# name: Install dependencies | ||
# if: ${{ steps.release.outputs.release_created }} | ||
|
||
# - run: npm publish | ||
# name: Publish to NPM | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
# if: ${{ steps.release.outputs.release_created }} | ||
|
||
# - run: npm publish | ||
# name: Publish to GitHub Packages | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
# if: ${{ steps.release.outputs.release_created }} |
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,20 @@ | ||
--- | ||
|
||
extends: default | ||
|
||
rules: | ||
comments: | ||
min-spaces-from-content: 1 | ||
require-starting-space: true | ||
|
||
comments-indentation: {} | ||
|
||
document-start: | ||
ignore: | | ||
.github/*.yml | ||
indentation: | ||
spaces: consistent | ||
indent-sequences: consistent | ||
|
||
line-length: disable |