Skip to content

Commit 7a4abcf

Browse files
chore: add CI workflow, LICENSE, CONTRIBUTING, SECURITY
1 parent 4e0db29 commit 7a4abcf

4 files changed

Lines changed: 89 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, dev, 'feat/**', 'fix/**', 'chore/**']
6+
pull_request:
7+
branches: [main, dev]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 24
21+
cache: npm
22+
23+
- run: npm ci
24+
- run: npm run typecheck
25+
- run: npm test
26+
27+
release:
28+
needs: test
29+
runs-on: ubuntu-latest
30+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
31+
permissions:
32+
contents: write
33+
issues: write
34+
pull-requests: write
35+
id-token: write
36+
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
fetch-tags: true
41+
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version: 24
45+
cache: npm
46+
registry-url: https://registry.npmjs.org
47+
48+
- name: Upgrade npm for trusted publishing support
49+
run: npm install -g npm@latest
50+
51+
- run: npm ci
52+
- run: npm run build
53+
54+
- run: npx semantic-release
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
NPM_CONFIG_PROVENANCE: true

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Contributing
2+
3+
```bash
4+
git clone https://github.com/forgesworn/secp256k1-range-proof.git
5+
cd secp256k1-range-proof
6+
npm install
7+
npm test
8+
```

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 forgesworn
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Security
2+
3+
If you discover a security vulnerability, please report it privately via [GitHub Security Advisories](https://github.com/forgesworn/secp256k1-range-proof/security/advisories/new).

0 commit comments

Comments
 (0)