From 62b70047abc403f59c6df53c7875b81553dd50bb Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 7 Aug 2019 18:26:14 -0700 Subject: [PATCH 1/5] Add "chromeapp" field to `package.json` I'm attempting to make a defacto standard for specifying Chrome App dependency substitutions using the "chromeapp" field in `package.json`. The "chromeapp" field is just like the "browser" field in `package.json` (see spec here: https://github.com/defunctzombie/package-browser-field-spec) except it's intended for Chrome App targets instead of a generic browser target. Specifically, since Chrome Apps can use raw sockets, we want to replace 'net' and 'dgram' with 'chrome-net' and 'chrome-dgram', respectively. --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index a5f710b..b4a7fd1 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,9 @@ }, "main": "http.js", "license": "MIT", + "chromeapp": { + "net": "chrome-net" + }, "dependencies": { "freelist": "^1.0.3", "http-parser-js": "^0.4.3" From 65665fddc31bb12883702d8ac2b4743be1da0f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez=20Baquero?= Date: Thu, 13 Jan 2022 19:11:12 -0500 Subject: [PATCH 2/5] feat: webtorrent org, semantic release --- .github/workflows/release.yml | 36 +++++++++++++++++++++++++++++++++++ package.json | 10 ++++++++-- 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6098b8e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: Release + +on: + push: + branches: + - master + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + persist-credentials: false + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + - name: Cache + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-npm- + - name: Install dependencies + run: npm i + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release diff --git a/package.json b/package.json index b4a7fd1..ba070e8 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "http-node", + "name": "@webtorrent/http-node", "version": "1.2.0", "description": "Node.js http as a standalone package", "repository": { "type": "git", - "url": "git://github.com/jscissr/http-node.git" + "url": "git://github.com/webtorrent/http-node.git" }, "main": "http.js", "license": "MIT", @@ -18,5 +18,11 @@ "author": { "name": "Jan Schär", "email": "jscissr@gmail.com" + }, + "devDependencies": { + "semantic-release": "^18.0.1" + }, + "release": { + "extends": "@webtorrent/semantic-release-config" } } From c524325db9efdf082760ebf01c672863cfea87a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rodr=C3=ADguez=20Baquero?= Date: Thu, 13 Jan 2022 19:12:47 -0500 Subject: [PATCH 3/5] fix: add semantic release config --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ba070e8..5d00022 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "email": "jscissr@gmail.com" }, "devDependencies": { + "@webtorrent/semantic-release-config": "^1.0.7", "semantic-release": "^18.0.1" }, "release": { From b881e8e8df7e6fb90e12561f11964656aef002e9 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 14 Jan 2022 00:13:29 +0000 Subject: [PATCH 4/5] chore(release): 1.3.0 # [1.3.0](https://github.com/webtorrent/http-node/compare/v1.2.0...v1.3.0) (2022-01-14) ### Bug Fixes * add semantic release config ([c524325](https://github.com/webtorrent/http-node/commit/c524325db9efdf082760ebf01c672863cfea87a1)) ### Features * webtorrent org, semantic release ([65665fd](https://github.com/webtorrent/http-node/commit/65665fddc31bb12883702d8ac2b4743be1da0f4c)) --- CHANGELOG.md | 11 +++++++++++ package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8af227e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# [1.3.0](https://github.com/webtorrent/http-node/compare/v1.2.0...v1.3.0) (2022-01-14) + + +### Bug Fixes + +* add semantic release config ([c524325](https://github.com/webtorrent/http-node/commit/c524325db9efdf082760ebf01c672863cfea87a1)) + + +### Features + +* webtorrent org, semantic release ([65665fd](https://github.com/webtorrent/http-node/commit/65665fddc31bb12883702d8ac2b4743be1da0f4c)) diff --git a/package.json b/package.json index 5d00022..2d89b63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@webtorrent/http-node", - "version": "1.2.0", + "version": "1.3.0", "description": "Node.js http as a standalone package", "repository": { "type": "git", From d3a9d882d28c71ffe65c251361909de4a569fc50 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 22 Jul 2023 16:28:49 +0200 Subject: [PATCH 5/5] Upgrade release.yml dependencies --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6098b8e..36ea24c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,24 +11,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 18 - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/.npm key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }} restore-keys: | ${{ runner.os }}-npm- - name: Install dependencies - run: npm i env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm i - name: Release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}