diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 96bd6fb..3172109 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -40,7 +40,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [14, 16, 18, 20, 22] + node-version: [14, 16, 18, 20, 22, 24] os: [ubuntu-latest] steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4da27bd --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +# https://docs.npmjs.com/trusted-publishers +name: Publish Package + +on: + push: + tags: + - 'v*' + +permissions: + id-token: write # Required for OIDC + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + submodules: recursive + + - uses: actions/setup-node@v6 + with: + node-version: '24' + registry-url: 'https://registry.npmjs.org' + + - run: npm install + + - run: npm publish diff --git a/History.md b/History.md index 22bb0e4..0a9163e 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,7 @@ +## Changelog + +Please refer to [GitHub Releases](https://github.com/layotto/js-sdk/releases) for the latest changelog. + 1.17.0 / 2024-05-26 ================== diff --git a/README.md b/README.md index c1242b3..672244a 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,15 @@ Enable trace debug log for grpc-js: GRPC_TRACE=compression GRPC_VERBOSITY=debug GRPC_TRACE=all npm run test test/unit/client/Invoker.test.ts ``` +### NPM Publish + +Just run `npm version ` command to update the version and push the tag to GitHub. + +```bash +npm version +git push origin main --tags +``` + ## Reference - [Core concepts, architecture and lifecycle](https://grpc.io/docs/what-is-grpc/core-concepts/) @@ -115,14 +124,8 @@ GRPC_TRACE=compression GRPC_VERBOSITY=debug GRPC_TRACE=all npm run test test/uni [Apache License 2.0](LICENSE) - - ## Contributors -|[
fengmk2](https://github.com/fengmk2)
|[
seeflood](https://github.com/seeflood)
|[
LZHK1ng](https://github.com/LZHK1ng)
|[
killagu](https://github.com/killagu)
| -| :---: | :---: | :---: | :---: | - - -This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Oct 13 2022 15:14:41 GMT+0800`. +[![Contributors](https://contrib.rocks/image?repo=layotto/js-sdk)](https://github.com/layotto/js-sdk/graphs/contributors) - +Made with [contributors-img](https://contrib.rocks). diff --git a/package.json b/package.json index 0f854f6..12a20f8 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "proto" ], "scripts": { - "contributor": "git-contributor", "ci": "npm run lint && npm run build && npm run test:unit", "test": "jest --detectOpenHandles", "test:unit": "NODE_ENV=test npm run test 'test/unit/.*\\.test\\.ts'", @@ -46,7 +45,6 @@ "@types/pump": "^1.1.1", "eslint": "^8.31.0", "eslint-config-egg": "^12.1.0", - "git-contributor": "^1.1.0", "grpc-tools": "^1.11.3", "grpc_tools_node_protoc_ts": "^5.3.2", "jest": "^27.2.5",