Skip to content

Commit d398698

Browse files
committed
ci(github): add workflows
1 parent 2cc1f2c commit d398698

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

.github/workflows/inactive-issues.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: check & close inactive issues
2+
3+
on:
4+
schedule:
5+
- cron: 30 1 * * *
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
env:
13+
DAYS_BEFORE_STALE: 90
14+
DAYS_BEFORE_CLOSE: 30
15+
steps:
16+
- uses: actions/stale@v8
17+
with:
18+
days-before-issue-stale: ${{ env.DAYS_BEFORE_STALE }}
19+
days-before-issue-close: ${{ env.DAYS_BEFORE_CLOSE }}
20+
exempt-issue-labels: good first issue,help wanted
21+
stale-issue-label: stale
22+
stale-issue-message: >
23+
This issue is stale because it has been open for
24+
${{ env.DAYS_BEFORE_STALE }} days with no activity.
25+
close-issue-message: >
26+
This issue was closed because it has been inactive
27+
for ${{ env.DAYS_BEFORE_CLOSE }} days since being marked as stale.
28+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-please.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: release-please
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
id-token: write
12+
13+
jobs:
14+
release-please:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: google-github-actions/release-please-action@v4
18+
id: release
19+
with:
20+
manifest-file: .github/.release-please-manifest.json
21+
config-file: .github/release-please-config.json
22+
23+
- if: ${{ steps.release.outputs.release_created }}
24+
uses: actions/checkout@v4
25+
26+
- if: ${{ steps.release.outputs.release_created }}
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version-file: ".nvmrc"
30+
registry-url: "https://registry.npmjs.org"
31+
32+
- if: ${{ steps.release.outputs.release_created }}
33+
run: |
34+
npm ci &&
35+
npm run build &&
36+
npm publish --provenance --access public
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)