Skip to content

Commit d626eb7

Browse files
committed
ci: update workflow files
1 parent 164fa9b commit d626eb7

11 files changed

+80
-226
lines changed

.github/COMMIT_CONVENTION.md

-70
This file was deleted.

.github/CONTRIBUTING.md

-46
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

-29
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.md

-28
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

-28
This file was deleted.

.github/workflows/checks.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: checks
2+
on:
3+
- push
4+
- pull_request
5+
- workflow_call
6+
7+
jobs:
8+
test:
9+
uses: poppinss/.github/.github/workflows/test.yml@main
10+
11+
lint:
12+
uses: poppinss/.github/.github/workflows/lint.yml@main
13+
14+
typecheck:
15+
uses: poppinss/.github/.github/workflows/typecheck.yml@main

.github/workflows/labels.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Syncing labels
2+
name: Sync labels
3+
on: workflow_dispatch
4+
permissions:
5+
issues: write
6+
jobs:
7+
labels:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: EndBug/label-sync@v2
12+
with:
13+
config-file: 'https://raw.githubusercontent.com/thetutlage/static/main/labels.yml'
14+
delete-other-labels: true
15+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# For releasing
2+
name: release
3+
on: workflow_dispatch
4+
permissions:
5+
contents: write
6+
id-token: write
7+
jobs:
8+
checks:
9+
uses: ./.github/workflows/checks.yml
10+
release:
11+
needs: checks
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
- name: git config
21+
run: |
22+
git config user.name "${GITHUB_ACTOR}"
23+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
24+
- name: Init npm config
25+
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
26+
env:
27+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
- run: npm install
29+
- run: npm run release -- --ci
30+
env:
31+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/stale.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 0 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9
11+
with:
12+
stale-issue-message: 'This issue has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still need help on this issue'
13+
stale-pr-message: 'This pull request has been marked as stale because it has been inactive for more than 21 days. Please reopen if you still intend to submit this pull request'
14+
close-issue-message: 'This issue has been automatically closed because it has been inactive for more than 4 weeks. Please reopen if you still need help on this issue'
15+
close-pr-message: 'This pull request has been automatically closed because it has been inactive for more than 4 weeks. Please reopen if you still intend to submit this pull request'
16+
days-before-stale: 21
17+
days-before-close: 5

.github/workflows/test.yml

-22
This file was deleted.

.husky/commit-msg

-3
This file was deleted.

0 commit comments

Comments
 (0)