Skip to content

Commit d0ee174

Browse files
author
Timo Notheisen
committed
feat: first version
1 parent d45f592 commit d0ee174

11 files changed

Lines changed: 943 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- uses: actions/setup-node@v6
12+
with:
13+
node-version: current
14+
- run: npm ci
15+
- run: npm run lint
16+
- run: npm run build
17+
- run: git diff --exit-code

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
!prepare-weekly-dependency-release/dist
4+
!prepare-weekly-dependency-release/dist/**

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"endOfLine": "lf",
3+
"printWidth": 120,
4+
"tabWidth": 4,
5+
"trailingComma": "none",
6+
"semi": false,
7+
"overrides": [
8+
{
9+
"files": ["*.yaml", "*.yml"],
10+
"options": {
11+
"tabWidth": 2
12+
}
13+
}
14+
]
15+
}

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
1-
# github-actions
1+
# github-actions
2+
3+
Reusable GitHub Actions for js-soft repositories.
4+
5+
## prepare-weekly-dependency-release
6+
7+
Checks whether all commits on a branch since the latest GitHub release were authored by Renovate or Dependabot. If no latest GitHub release exists, it checks all commits on the branch instead. If all checked commits are dependency-bot commits, it outputs the next patch tag for a dependency-only release.
8+
9+
```yaml
10+
- name: Check dependency-only changes
11+
id: prepare
12+
uses: js-soft/github-actions/prepare-weekly-dependency-release@main
13+
with:
14+
github-token: ${{ github.token }}
15+
branch: main
16+
```
17+
18+
Outputs:
19+
20+
- `should_release`: `true` when a new release should be created.
21+
- `next_tag`: the next patch tag to release. If there is no latest GitHub release, this is `0.1.0`.
22+
23+
Inputs:
24+
25+
- `github-token`: token used to read releases, compare commits, and inspect tags.
26+
- `branch`: branch to inspect. Defaults to `main`.

0 commit comments

Comments
 (0)