diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..36ea24c --- /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@v3 + with: + persist-credentials: false + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Cache + uses: actions/cache@v3 + with: + path: ~/.npm + key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }} + restore-keys: | + ${{ runner.os }}-npm- + - name: Install dependencies + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm i + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release 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 a5f710b..2d89b63 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,16 @@ { - "name": "http-node", - "version": "1.2.0", + "name": "@webtorrent/http-node", + "version": "1.3.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", + "chromeapp": { + "net": "chrome-net" + }, "dependencies": { "freelist": "^1.0.3", "http-parser-js": "^0.4.3" @@ -15,5 +18,12 @@ "author": { "name": "Jan Schär", "email": "jscissr@gmail.com" + }, + "devDependencies": { + "@webtorrent/semantic-release-config": "^1.0.7", + "semantic-release": "^18.0.1" + }, + "release": { + "extends": "@webtorrent/semantic-release-config" } }