-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
is-release-commit-action
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"], | ||
"rules": { | ||
"subject-case": [2, "always", "sentence-case"], | ||
"scope-case": [2, "always", ["camel-case", "upper-case"]] | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
project: ['tsconfig.json'], | ||
}, | ||
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'], | ||
rules: {}, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: build | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature/** | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js & npm | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Linting | ||
run: npm run lint | ||
- name: Run Build Script | ||
run: npm run build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
name: release-please | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# node / npm | ||
node_modules | ||
|
||
# OS | ||
.DS_Store | ||
|
||
# Project Specific | ||
dist-test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit $1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# Since the dist folder is checked in we make sure to run a build before commiting | ||
npm run build | ||
git add dist | ||
|
||
# Prettify changed files | ||
npx pretty-quick --staged |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"printWidth": 130, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"bracketSpacing": false | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "0.0.0" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Is Release Commit Action | ||
|
||
Checks whether the current commit is a release commit. | ||
|
||
## Inputs | ||
|
||
### `release-tag-prefix` | ||
|
||
A glob prefix to filter tag names. Set to `*` if all tags shall be taken into account. | ||
Default: `v*` | ||
|
||
### `fallback-tag` | ||
|
||
The fallback if no release tag could have been found. | ||
Default: `0.0.0` | ||
|
||
## Outputs | ||
|
||
### `latest-release-tag` | ||
|
||
The content of the latest release tag. E.g. "v1.2.3" or the value of `fallback-tag` if no tag could be found. | ||
|
||
### `is-release-commit` | ||
|
||
Whether the current commit is a release commit (`"true"`) or not (`"false"`) | ||
|
||
## Example usage | ||
|
||
<!-- x-release-please-start-version --> | ||
|
||
```yaml | ||
- uses: NiverEngineering/is-release-commit-action@v0.0.0 | ||
id: is-release-commit | ||
``` | ||
<!-- x-release-please-end --> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'Maven Artifact Existence Checker' | ||
description: 'Check whether an artifact exists within the given maven repository' | ||
inputs: | ||
release-tag-prefix: | ||
description: 'A glob prefix to filter tag names. Set to "*" if all tags shall be taken into account' | ||
default: 'v*' | ||
fallback-tag: | ||
description: 'The fallback if no release tag could have been found.' | ||
default: '0.0.0' | ||
outputs: | ||
latest-release-tag: | ||
description: 'The content of the latest release tag. E.g. "v1.2.3"' | ||
is-release-commit: | ||
description: 'Whether the current commit is a release commit (`true`) or not (`false`)' | ||
runs: | ||
using: 'node20' | ||
main: 'dist/action.js' |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} **/ | ||
module.exports = { | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+.tsx?$': ['ts-jest', {}], | ||
}, | ||
}; |