Skip to content

Commit

Permalink
fixup! Chore(ci): Check if branch has tag for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Oct 4, 2024
1 parent fddcd71 commit 55a8707
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Publish
on:
push:
branches:
- chore/DS-1434-prerelease
- main
- release/next
- release/alpha
Expand Down Expand Up @@ -32,9 +31,6 @@ jobs:
echo "has-tag=false" >> $GITHUB_OUTPUT
fi
- name: Debug1
run: echo "${{ steps.checkTagExists.outputs.has-tag }}"

publish:
name: 🚀 📦 Publish Package
needs: hasTag
Expand All @@ -60,12 +56,13 @@ jobs:
- name: Build
run: yarn build

# - name: Authenticate npm
# run: ./bin/ci/npm-auth.sh
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Authenticate npm
run: ./bin/ci/npm-auth.sh
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

# - name: Publish
# run: make publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish
run: make publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 55a8707

Please sign in to comment.