From 584915180c657574e3cada775cca4d20c6af2097 Mon Sep 17 00:00:00 2001 From: Ivan Cherviakov Date: Mon, 5 Jan 2026 15:56:14 +0700 Subject: [PATCH 1/5] chore(adapter): added publish action --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ package-lock.json | 4 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..7815cae --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish Package +run-name: publish @taskworld/socket.io-redis-adapter + +on: + workflow_dispatch: + +permissions: + contents: read + packages: write + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://npm.pkg.github.com + + - run: npm ci + + - run: npm run compile + + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package-lock.json b/package-lock.json index c805f93..8ee13c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@socket.io/redis-adapter", + "name": "@taskworld/socket.io-redis-adapter", "version": "8.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@socket.io/redis-adapter", + "name": "@taskworld/socket.io-redis-adapter", "version": "8.3.1", "license": "MIT", "dependencies": { From a8dba9ec9398ccd73477e197f6e81515d294f70f Mon Sep 17 00:00:00 2001 From: Ivan Cherviakov Date: Mon, 5 Jan 2026 16:09:18 +0700 Subject: [PATCH 2/5] upgrade node version which supports lock file v3 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 809440d..2fe461d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,8 +16,8 @@ jobs: strategy: matrix: node-version: - - 14 - - 20 + - 18 + - 24 services: redis: From 76d9767610ba0a4285e90a50b350c6578e149f46 Mon Sep 17 00:00:00 2001 From: Ivan Cherviakov Date: Mon, 5 Jan 2026 16:22:45 +0700 Subject: [PATCH 3/5] updated ci workflow --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fe461d..6fb16d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: + branches-ignore: + - main pull_request: - schedule: - - cron: '0 0 * * 0' permissions: contents: read @@ -12,6 +12,7 @@ permissions: jobs: test-node: runs-on: ubuntu-latest + timeout-minutes: 5 strategy: matrix: From 5c1983d6a7f7d753dda1d8d3fd4152a0add7662a Mon Sep 17 00:00:00 2001 From: Ivan Cherviakov Date: Mon, 5 Jan 2026 16:30:17 +0700 Subject: [PATCH 4/5] another fix to ci workflow --- .github/workflows/ci.yml | 3 --- package.json | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6fb16d7..c7cea0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: CI on: - push: - branches-ignore: - - main pull_request: permissions: diff --git a/package.json b/package.json index 389cd22..8e36d72 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "types": "./dist/index.d.ts", "scripts": { "compile": "rimraf ./dist && tsc", - "test": "npm run format:check && tsc && nyc mocha --bail --require ts-node/register test/test-runner.ts", + "test": "npm run format:check && tsc && nyc mocha --bail --exit --require ts-node/register test/test-runner.ts", "format:check": "prettier --parser typescript --check 'lib/**/*.ts' 'test/**/*.ts'", "format:fix": "prettier --parser typescript --write 'lib/**/*.ts' 'test/**/*.ts'", "prepack": "npm run compile" From 6fe07d31485785eb851dfa9c349e5e5fc571e018 Mon Sep 17 00:00:00 2001 From: Ivan Cherviakov Date: Mon, 5 Jan 2026 16:31:22 +0700 Subject: [PATCH 5/5] trigger ci