Skip to content

Commit 3688bd5

Browse files
committed
chore: first commit
0 parents  commit 3688bd5

24 files changed

Lines changed: 3124 additions & 0 deletions

‎.editorconfig‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

‎.github/workflows/pages.yml‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'data/versions.json'
8+
- 'schema/versions.schema.json'
9+
- 'docs/**'
10+
- '.github/workflows/pages.yml'
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
concurrency:
19+
group: pages
20+
cancel-in-progress: false
21+
22+
jobs:
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Assemble site
29+
run: |
30+
mkdir -p _site
31+
cp data/versions.json _site/versions.json
32+
cp schema/versions.schema.json _site/versions.schema.json
33+
cp docs/index.html _site/index.html
34+
35+
- uses: actions/configure-pages@v5
36+
37+
- uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: _site
40+
41+
deploy:
42+
needs: build
43+
runs-on: ubuntu-latest
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
steps:
48+
- id: deployment
49+
uses: actions/deploy-pages@v4

‎.github/workflows/update.yml‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: update
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
update:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: pnpm/action-setup@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 24
22+
cache: pnpm
23+
24+
- run: pnpm install --frozen-lockfile
25+
26+
- name: Scrape
27+
run: pnpm run scrape
28+
29+
- name: Validate
30+
run: pnpm run validate
31+
32+
- name: Open pull request
33+
uses: peter-evans/create-pull-request@v7
34+
with:
35+
commit-message: 'chore(data): refresh NSIS dataset'
36+
title: 'chore(data): refresh NSIS dataset'
37+
body: |
38+
Automated update from the cron-driven scraper.
39+
40+
Review the diff in `data/versions.json` for new entries
41+
and any backfilled `releasedAt` values.
42+
branch: chore/refresh-dataset
43+
delete-branch: true
44+
add-paths: data/versions.json

‎.github/workflows/validate.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: validate
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
validate:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: pnpm/action-setup@v4
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 24
19+
cache: pnpm
20+
21+
- run: pnpm install --frozen-lockfile
22+
23+
- run: pnpm run typecheck
24+
25+
- run: pnpm run validate

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules/
2+
.cache/
3+
.DS_Store
4+
*.log
5+
docs/versions.json

‎.nvmrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

‎README.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# nsis-data
2+
3+
Canonical dataset of NSIS releases — versions, download URLs, file sizes and SHA1/SHA256/SHA512 hashes for the Windows ZIP and source tarball of every release.
4+
5+
## Endpoint
6+
7+
Once published, the dataset is available at:
8+
9+
```
10+
https://nsis-dev.github.io/data/versions.json
11+
```
12+
13+
The file conforms to [`schema/versions.schema.json`](./schema/versions.schema.json).
14+
15+
## License
16+
17+
ISC

0 commit comments

Comments
 (0)