Skip to content

Commit

Permalink
Bump version & setup CI (#5)
Browse files Browse the repository at this point in the history
* bump version

* github action to publish
  • Loading branch information
jokester authored Dec 14, 2024
1 parent df1d656 commit d382724
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-publish-npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build & publish npm

on:
push:
tags:
- "v**"
branches:
- main
workflow_dispatch:
pull_request: {} # NOTE: worktree would be a temporal merge commit

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "20"

- uses: pnpm/action-setup@v4

- run: git submodule init && git submodule update

- run: pnpm install

- run: make patch-upstream lib-build

- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: ${{ !(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) }}
package: ./socket.io-serverless/package.json
2 changes: 1 addition & 1 deletion socket.io
Submodule socket.io updated 57 files
+2 −0 .github/workflows/build-examples.yml
+2 −2 .github/workflows/ci-browser.yml
+7 −2 .github/workflows/ci.yml
+11 −10 examples/nuxt-example/server/plugins/socket.io.ts
+30 −0 examples/typescript-client-example/cjs/client.ts
+17 −0 examples/typescript-client-example/cjs/package.json
+9 −0 examples/typescript-client-example/cjs/tsconfig.json
+30 −0 examples/typescript-client-example/esm/client.ts
+17 −0 examples/typescript-client-example/esm/package.json
+9 −0 examples/typescript-client-example/esm/tsconfig.json
+371 −22 package-lock.json
+2 −1 package.json
+16 −0 packages/engine.io-client/CHANGELOG.md
+2 −2 packages/engine.io-client/dist/engine.io.esm.min.js
+1 −1 packages/engine.io-client/dist/engine.io.esm.min.js.map
+2 −1 packages/engine.io-client/dist/engine.io.js
+1 −1 packages/engine.io-client/dist/engine.io.js.map
+2 −2 packages/engine.io-client/dist/engine.io.min.js
+1 −1 packages/engine.io-client/dist/engine.io.min.js.map
+1 −1 packages/engine.io-client/lib/transports/websocket.node.ts
+1 −0 packages/engine.io-client/lib/transports/websocket.ts
+2 −1 packages/engine.io-client/package.json
+13 −0 packages/engine.io-client/test/connection.js
+1 −3 packages/engine.io-client/test/index.js
+8 −0 packages/engine.io-client/test/support/env.js
+12 −3 packages/engine.io-client/test/transport.js
+5 −7 packages/engine.io-client/test/webtransport.mjs
+1 −1 packages/engine.io-parser/lib/decodePacket.ts
+14 −0 packages/engine.io/CHANGELOG.md
+2 −2 packages/engine.io/package.json
+5 −0 packages/engine.io/test/common.js
+5 −7 packages/engine.io/test/webtransport.mjs
+17 −1 packages/socket.io-client/CHANGELOG.md
+2 −2 packages/socket.io-client/dist/socket.io.esm.min.js
+1 −1 packages/socket.io-client/dist/socket.io.esm.min.js.map
+2 −1 packages/socket.io-client/dist/socket.io.js
+1 −1 packages/socket.io-client/dist/socket.io.js.map
+2 −2 packages/socket.io-client/dist/socket.io.min.js
+1 −1 packages/socket.io-client/dist/socket.io.min.js.map
+2 −2 packages/socket.io-client/dist/socket.io.msgpack.min.js
+1 −1 packages/socket.io-client/dist/socket.io.msgpack.min.js.map
+9 −0 packages/socket.io-client/lib/index.ts
+1 −1 packages/socket.io-client/package.json
+1 −0 packages/socket.io-client/support/rollup.config.umd.js
+13 −0 packages/socket.io/CHANGELOG.md
+2 −2 packages/socket.io/client-dist/socket.io.esm.min.js
+1 −1 packages/socket.io/client-dist/socket.io.esm.min.js.map
+2 −1 packages/socket.io/client-dist/socket.io.js
+1 −1 packages/socket.io/client-dist/socket.io.js.map
+2 −2 packages/socket.io/client-dist/socket.io.min.js
+1 −1 packages/socket.io/client-dist/socket.io.min.js.map
+2 −2 packages/socket.io/client-dist/socket.io.msgpack.min.js
+1 −1 packages/socket.io/client-dist/socket.io.msgpack.min.js.map
+1 −1 packages/socket.io/lib/namespace.ts
+1 −1 packages/socket.io/lib/parent-namespace.ts
+1 −1 packages/socket.io/package.json
+0 −7 packages/socket.io/test/index.ts
2 changes: 1 addition & 1 deletion socket.io-serverless/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "socket.io-serverless",
"description": "A custom socket.io build to run in Cloudflare workers.",
"version": "0.1.0-beta4",
"version": "0.2.0-rc1",
"type": "module",
"dependencies": {},
"files": [
Expand Down

0 comments on commit d382724

Please sign in to comment.