Skip to content

Commit

Permalink
feat(ci): publish npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
hgw77 committed Dec 18, 2024
1 parent f7cd887 commit c2cc52f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: package-release
on:
push:
branches:
- main
paths:
- package.json
- hgw-build-release
#paths:
# - package.json
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Expand Down Expand Up @@ -38,8 +38,8 @@ jobs:
- name: Publish to github packages
run: |
set +e
# publish to https://github.com/${{ github.repository_owner }}/packages
npm publish --access=public # --dry-run
echo "publish to https://github.com/${{ github.repository_owner }}/packages"
npm publish --access=public #--dry-run
if [ $? != 0 ] ; then
echo "::warning title=PUBLISH::Could not publish to github. Maybe you forgot to increment the version?"
Expand Down

0 comments on commit c2cc52f

Please sign in to comment.