Skip to content

Commit 5c69943

Browse files
author
AudD
committed
Release v1.5.9
0 parents  commit 5c69943

61 files changed

Lines changed: 11930 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
node-version: ["20", "22"]
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: npm
24+
- run: npm ci
25+
- run: npm run lint
26+
- run: npm run typecheck
27+
- run: npm run test
28+
- run: npm run build

.github/workflows/contract.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Contract
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
schedule:
8+
# Daily nightly run at 06:00 UTC catches drift from upstream API changes
9+
# captured into fixtures/ between merges.
10+
- cron: "0 6 * * *"
11+
repository_dispatch:
12+
# Fired by audd-openapi on every merge to main; re-run our parser against
13+
# the latest spec to catch contract drift before it reaches users.
14+
types: [openapi-updated]
15+
16+
permissions:
17+
contents: read
18+
issues: write
19+
20+
jobs:
21+
contract:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
path: audd-node
27+
- uses: actions/checkout@v4
28+
with:
29+
repository: AudDMusic/audd-openapi
30+
path: audd-openapi
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: "20"
34+
cache: npm
35+
cache-dependency-path: audd-node/package-lock.json
36+
- working-directory: audd-node
37+
run: npm ci
38+
- working-directory: audd-node
39+
env:
40+
AUDD_OPENAPI_FIXTURES: ${{ github.workspace }}/audd-openapi/fixtures
41+
run: npx vitest run test/contract.test.ts

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'audd-node/v*'
7+
- 'v*'
8+
permissions:
9+
contents: read
10+
id-token: write # for npm trusted publishing OIDC + Sigstore provenance
11+
packages: write # for GitHub Packages npm push
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: "24" # ships npm >= 11.5.1, required for trusted publishing
21+
cache: npm
22+
registry-url: "https://registry.npmjs.org"
23+
- run: npm ci
24+
- run: npm run lint
25+
- run: npm run typecheck
26+
- run: npm run test
27+
- run: npm run build
28+
- name: Publish to npmjs.com
29+
run: npm publish --access public
30+
- name: Publish to GitHub Packages (scoped @auddmusic/audd)
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
# GitHub Packages npm requires the package name to be `@<owner>/<name>`,
34+
# lowercase owner. We publish a renamed copy of the same artifact to the
35+
# AudDMusic org's package list. The canonical install path is still
36+
# `npm install audd` from npmjs.com.
37+
run: |
38+
set -e
39+
cp package.json package.json.npmjs
40+
node -e "const p=require('./package.json'); p.name='@auddmusic/audd'; require('fs').writeFileSync('./package.json', JSON.stringify(p, null, 2));"
41+
{
42+
echo "@auddmusic:registry=https://npm.pkg.github.com"
43+
echo "//npm.pkg.github.com/:_authToken=\${NODE_AUTH_TOKEN}"
44+
} > .npmrc
45+
npm publish --access public
46+
mv package.json.npmjs package.json
47+
rm .npmrc

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
dist/
3+
coverage/
4+
.env
5+
.DS_Store
6+
*.log

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 AudD, LLC (https://audd.io)
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.

0 commit comments

Comments
 (0)