Skip to content

Merge pull request #7 from jokester/fix-readme-manifest #11

Merge pull request #7 from jokester/fix-readme-manifest

Merge pull request #7 from jokester/fix-readme-manifest #11

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
- run: cp -rv README.md docs ./socket.io-serverless/
- 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