dry run except on tag push #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
- 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 |