Skip to content

Commit

Permalink
Housekeeping.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjdhjd committed Sep 17, 2023
1 parent c7a4d8e commit afb7cc4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
pull_request:
push:
release:
types: [ created ]
types: [ published ]
workflow_dispatch:

jobs:

# Run a validation build on LTS versions of node.
validate-build:
build:
name: 'Build package'

# Build only if we've received a push event.
if: github.event_name == 'push'
Expand Down Expand Up @@ -45,6 +47,8 @@ jobs:

# Publish the release to the NPM registry.
publish-npm:
name: 'Publish package'
needs: build

# Publish only if we've received a release event and the tag starts with "v" (aka v1.2.3).
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit afb7cc4

Please sign in to comment.