Skip to content

Commit

Permalink
try publish npm and check if what happens if same tag tries to publis…
Browse files Browse the repository at this point in the history
…h twice to nuget
  • Loading branch information
Freymaurer committed Feb 5, 2025
1 parent 0520d49 commit d12e602
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/PublishNpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ jobs:
run: npm run build
working-directory: src/Components

# - name: Publish to NPM
# run: npm publish --access public
# working-directory: src/Components
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to NPM
run: |
if [ "$GITHUB_REF_NAME" = "nightly" ]; then
npm publish --access public --tag next
else
npm publish --access public
fi
working-directory: src/Components
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
2 changes: 1 addition & 1 deletion .github/workflows/PublishNuget.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Nightly NuGet Package
name: Publish NuGet Package

on:
push:
Expand Down

0 comments on commit d12e602

Please sign in to comment.