Skip to content

Commit

Permalink
Fix publish bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Spataro committed Jul 14, 2022
1 parent e9bebf1 commit 7eaeb1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: |
release='${{ github.event.release.tag_name }}'
version=`echo $release | cut -b2-`
if ! echo $release | grep -q '^v[0-9]\+\.[0-9]\+\.[0-9]\+(-.+)$'; then
if ! echo $release | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+(-.+)?$'; then
echo "Release name must be in the format of 'vX.Y.Z[-anything]', got '$release'"
exit 1
fi
Expand All @@ -45,7 +45,7 @@ jobs:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
@xeger:registry=https://registry.npmjs.org/
EOF
npm publish --workspaces
npm publish
env:
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
- name: Publish to GitHub
Expand All @@ -56,6 +56,6 @@ jobs:
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
@xeger:registry=https://npm.pkg.github.com/
EOF
npm publish --workspaces
npm publish
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 7eaeb1a

Please sign in to comment.