Skip to content

set workflow name

set workflow name #2

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