Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Commit

Permalink
Housekeeping.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjdhjd committed Sep 17, 2023
1 parent 9d6d3cf commit 4e7363e
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: 'Publishing 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 4e7363e

Please sign in to comment.