Skip to content

Commit

Permalink
Merged GitHub Action jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
KDean-Dolphin committed Jan 22, 2025
1 parent 5ff3178 commit 0673dc1
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- test-release

jobs:
build:
release:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -44,15 +44,6 @@ jobs:
# Run test script if present.
npm run test --if-present
publish:
needs: build

# Publish is valid only for release publication.
if: github.event_name == 'release'

runs-on: ubuntu-latest

steps:
- name: Publish
shell: bash
env:
Expand All @@ -67,7 +58,12 @@ jobs:
tag_args="--tag $tag"
fi
if [ "${{ github.event_name }}" != "release" ]
then
dry_run_arg="--dry-run"
fi
# Create .npmignore to exclude hidden directories.
echo /.\*/ > .npmignore
npm publish --access public $tag_args
npm publish --access public $tag_args $dry_run_arg

0 comments on commit 0673dc1

Please sign in to comment.