Skip to content

Commit 0d3fb05

Browse files
authored
Update publish.yml
1 parent d3d4bef commit 0d3fb05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions: write-all
66

77
jobs:
88

9-
publish-npm:
9+
publish:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
@@ -21,9 +21,9 @@ jobs:
2121
sed -i "s|\(uses: forproxyband/vector-code-map@\)v[0-9.]*|\1${{ NPM_PACKAGE_VERSION }}|g" README.md
2222
- run: git add README.md
2323
- run: |
24-
git tag -a ${NPM_PACKAGE_VERSION} -m "Add tag ${NPM_PACKAGE_VERSION}"
25-
git push origin ${NPM_PACKAGE_VERSION}
2624
git commit -m "Set version ${NPM_PACKAGE_VERSION} by ${GITHUB_ACTOR}"
2725
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}
2828
env:
2929
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)