diff --git a/.github/workflows/build-publish-npm.yaml b/.github/workflows/build-publish-npm.yaml new file mode 100644 index 0000000..ae62bda --- /dev/null +++ b/.github/workflows/build-publish-npm.yaml @@ -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 \ No newline at end of file diff --git a/socket.io b/socket.io index d0fc720..91e1c8b 160000 --- a/socket.io +++ b/socket.io @@ -1 +1 @@ -Subproject commit d0fc72042068e7eaef448941add617f05e1ec236 +Subproject commit 91e1c8b3584054db6072046404a24e79a17c1367 diff --git a/socket.io-serverless/package.json b/socket.io-serverless/package.json index 6f8a920..0e2c07f 100644 --- a/socket.io-serverless/package.json +++ b/socket.io-serverless/package.json @@ -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": [