Skip to content

Commit 5afd819

Browse files
author
DavertMik
committed
updated workflow
1 parent 54f5c76 commit 5afd819

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/publish-beta.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
permissions:
8-
contents: read
8+
contents: write
99
id-token: write
1010

1111
jobs:
@@ -45,5 +45,13 @@ jobs:
4545
echo "tag=latest" >> $GITHUB_OUTPUT
4646
fi
4747
48+
- name: Configure git
49+
run: |
50+
git config user.name "GitHub CD"
51+
git config user.email "github-cd@example.com"
52+
53+
- name: Set package version
54+
run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version
55+
4856
- name: Publish to npm
4957
run: npm publish --provenance --access public --tag ${{ steps.npm_tag.outputs.tag }}

0 commit comments

Comments
 (0)