diff --git a/.github/workflows/lint.js.yml b/.github/workflows/lint.js.yml index 2a5ba3c..ba3d66a 100644 --- a/.github/workflows/lint.js.yml +++ b/.github/workflows/lint.js.yml @@ -10,7 +10,7 @@ permissions: contents: read jobs: - build: + lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4816fe4..f55c1f2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -10,7 +10,7 @@ permissions: contents: read jobs: - build: + ubuntu: needs: [get-lts] runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4c3344..6123f18 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,10 +43,10 @@ jobs: with: node-version: "24" - uses: actions/checkout@v6 - - run: npm ci || npm install + - run: npm ci - run: npm test - create-release: + release: needs: [build, version] runs-on: ubuntu-latest permissions: @@ -77,3 +77,18 @@ jobs: tag_name: v${{ needs.version.outputs.version }} name: ${{ needs.version.outputs.version }} generate_release_notes: false + + publish: + needs: release + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 + with: + node-version: "24" + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish --provenance diff --git a/CHANGELOG.md b/CHANGELOG.md index 971028e..cac0ee7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Unreleased +### 2.2.1 - 2026-05-25 + - fix(packet): use crypto.randomInt for Packet.uuid (RFC 5452) - fix(packet): preserve RDLENGTH+RDATA for unknown RR types diff --git a/package.json b/package.json index 634b465..87419bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dns2", - "version": "2.2.0", + "version": "2.2.1", "description": "A DNS Server and Client Implementation in Pure JavaScript with no dependencies.", "main": "index.js", "types": "ts/index.d.ts", @@ -41,12 +41,12 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/song940/node-dns.git" + "url": "git+https://github.com/lsongdev/node-dns.git" }, "bugs": { - "url": "https://github.com/song940/node-dns/issues" + "url": "https://github.com/lsongdev/node-dns/issues" }, - "homepage": "https://github.com/song940/node-dns#readme", + "homepage": "https://github.com/lsongdev/node-dns#readme", "devDependencies": { "@eslint/js": "^10.0.1", "@stylistic/eslint-plugin": "^5.10.0",