Skip to content

Commit

Permalink
feat: Just on tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits authored Apr 23, 2024
1 parent 2a2ef62 commit 60762d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

name: Node.js Package

on: [push, workflow_dispatch]
on:
push:
tags:
- '*'
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -31,8 +35,6 @@ jobs:
with:
version: latest
- run: pnpm install
- run: git diff-index --quiet HEAD -- || { echo "Git working directory not clean."; exit 1; }
- run: pnpm version patch
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 60762d4

Please sign in to comment.