-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: release-it and semantic pr title (#1614)
- Loading branch information
1 parent
aa2e0ad
commit 3a80bde
Showing
9 changed files
with
16,845 additions
and
7,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# ######################################################################### | ||
# Creates a new release using `workflow_dispatch` event trigger with `type` | ||
# as input to describe the type of release to create | ||
name: 'Release-it: Create a new release on demand' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
type: | ||
description: 'Type. Can be `beta`, `patch`, `minor` or `major`' | ||
required: true | ||
default: 'patch' | ||
|
||
jobs: | ||
release: | ||
runs-on: [ubuntu-latest] | ||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
steps: | ||
- name: Checkout master | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'master' | ||
fetch-depth: 0 # fetch all commits history to create the changelog | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3.6.0 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Initialize Git user | ||
run: | | ||
git config --global user.email "${{ github.actor }}@users.noreply.github.com }}" | ||
git config --global user.name "${{ github.actor }}" | ||
- name: Initialize NPM config | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Make the release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: | | ||
npx release-it ${{github.event.inputs.type}} --ci --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Semantic PR Title" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ test/typescript/*.map | |
# VS Code stuff | ||
**/typings/** | ||
**/.vscode/** | ||
|
||
.npmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Release History | ||
|
||
## 4.3.7 | ||
|
||
### PR | ||
|
||
fix: regression from #1401 and allow CI test failures to break gitthub workflow (#1443) | ||
|
||
## 4.3.6 | ||
|
||
### PR | ||
|
||
chore: update CI | ||
|
||
fix(browser): require buffer (#1420) | ||
|
||
fix(types): connect function proper overloads (#1416) | ||
|
||
## 4.3.5 | ||
|
||
### PR | ||
|
||
fix(drain-leak): fix regression introduced in #1301 (#1401) | ||
|
||
## 4.3.4 | ||
|
||
### PR | ||
|
||
fix(dependency): migrate LruMap from collections to lru-cache (#1396) | ||
|
||
## 4.3.3 | ||
|
||
### PR | ||
|
||
fix(publish): call callback when messageId available (#1393) | ||
|
||
fix: remove collections.js depdendency from number-allocator (#1394) | ||
|
||
### PR | ||
|
||
fix(dependencies): update collections (#1386) | ||
|
||
## 4.3.2 | ||
|
||
### PR | ||
|
||
fix(dependencies): update collections (#1386) | ||
|
||
## 4.3.1 | ||
|
||
### PR | ||
|
||
fix(dependencies): remove babel-eslint and snazzy (#1383) | ||
|
||
## 4.3.0 | ||
|
||
### PR | ||
|
||
refined topic alias support (#1301) | ||
|
||
fix security vulnerability in ws stream (#1307) | ||
|
||
skip TLS SNI if host is IP address (#1311) | ||
|
||
update readme about vNext discussions (#1328) | ||
|
||
update readme sample (#1331) | ||
|
||
add support for ALPN TLS extension (#1332) | ||
|
||
align onConnectCallback with specs expecting connack packet (#1333) | ||
|
||
fix resubscribe messageId allocate twice (#1337) | ||
|
||
rework examples to be a bit more specific (#1352) | ||
|
||
readme typo fixed (#1353) | ||
|
||
fix(typescript): use correct version of @types/ws (#1358) | ||
|
||
fix(type): fix push properties types (#1359) | ||
|
||
fix: audit dev dependencies (#1374) | ||
|
||
fix(type): add properties type for IClientSubscribeOptions (#1378) | ||
|
||
feat(client): auth handler for enhanced auth (#1380) | ||
|
||
## 4.2.8 | ||
|
||
### PR | ||
|
||
Fix ws vulnerability and typescript bug (#1292) | ||
|
||
## 4.2.7 | ||
|
||
### PR | ||
|
||
#1287 - Fix production vulnerabilities (#1289) | ||
|
||
#1215 - Add missing 'duplexify' dependency (#1266) | ||
|
||
Improve type definition for 'wsOptions' (#1256) | ||
|
||
Improve Typescript Declaratiosn for userProperties (#1249) | ||
|
||
#1235 - Call the end on the WebSocket stream when WebSocket close event is emitted. (#1239) | ||
|
||
#1201 - Uncaught TypeError: net.createConnection is not a function. (#1236) | ||
|
||
Improve Documentation for Browserify (#1224) | ||
|
||
## v4.2.6 and Below | ||
|
||
The release history has been documented in the GitHub releases and tags historically. |
Oops, something went wrong.