Skip to content

Commit

Permalink
build: npm publish action was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vMReal committed Sep 15, 2024
1 parent c72e5eb commit 48d3c4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: npm
on:
workflow_dispatch:

permissions:
contents: read
id-token: write


jobs:
publish:
Expand All @@ -15,7 +19,7 @@ jobs:
- name: Verify it's a tag
id: check_tag
run: |
if [[ -z "${GITHUB_REF##*refs/tags/*}" ]]; then
if [[ "${GITHUB_REF_TYPE}" != "tag" ]]; then
echo "This workflow can only be triggered on a tag."
exit 1
fi
Expand Down

0 comments on commit 48d3c4b

Please sign in to comment.