Skip to content

Commit

Permalink
Tweak tag logic in publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnspurlock-skymethod committed Dec 1, 2023
1 parent f596741 commit 64f13c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG_NAME: ${{ github.ref_name }}
- name: Publish
if: github.repository == 'skymethod/kv-connect-kit' && startsWith(github.ref, 'refs/tags/')
run: |
echo "$TAG_NAME"
npm config set provenance true
if echo $TAG_NAME | grep "^v?[0-9]\+\.[0-9]\+\.[0-9]\+";
if grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+" <<< $TAG_NAME;
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
VERSION=$TAG_NAME .github/npm_publish.sh
Expand Down

0 comments on commit 64f13c7

Please sign in to comment.