Skip to content

Commit c58adc2

Browse files
authored
Update publish.yml
1 parent 78c0ac3 commit c58adc2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Publish
22

33
on:
44
workflow_dispatch:
5+
56
permissions: write-all
67

78
jobs:
@@ -21,9 +22,9 @@ jobs:
2122
sed -i "s|\(uses: forproxyband/vector-code-map@\)v[0-9.]*|\1${{ NPM_PACKAGE_VERSION }}|g" README.md
2223
- run: git add README.md
2324
- run: |
24-
git commit -m "Set version ${{ NPM_PACKAGE_VERSION }} by ${GITHUB_ACTOR}"
25+
git commit -m "Set version ${ NPM_PACKAGE_VERSION } by ${GITHUB_ACTOR}"
2526
git push -u origin main
26-
git tag -a ${{ NPM_PACKAGE_VERSION }} -m "Add tag ${NPM_PACKAGE_VERSION}"
27-
git push origin ${{ NPM_PACKAGE_VERSION }}
27+
git tag -a ${ NPM_PACKAGE_VERSION } -m "Add tag ${NPM_PACKAGE_VERSION}"
28+
git push origin ${ NPM_PACKAGE_VERSION }
2829
env:
2930
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)