Skip to content

dry run except on tag push #1

dry run except on tag push

dry run except on tag push #1

Workflow file for this run

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/' }}

Check failure on line 22 in .github/workflows/publish-npm.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-npm.yaml

Invalid workflow file

You have an error in your yaml syntax on line 22
package: ./socket.io-serverless