Skip to content

Commit ceccb53

Browse files
committed
chore: correct the workflow
1 parent caa796c commit ceccb53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4242
- name: Publish Tag
4343
run: |
44-
node --eval "console.log(JSON.parse(require('fs').readFileSync('packages/launcher-core/package.json').toString()).version)" > tag.log
44+
node --eval "console.log(JSON.parse(require('fs').readFileSync('package.json').toString()).version)" > tag.log
4545
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/voxelum/minecraft-launcher-core-node.git"
4646
git config user.name ci010
4747
git config user.email cijhn@hotmail.com
48-
git tag -f @xmcl/minecraft-launcher-core@$(cat tag.log)
49-
git push origin tag @xmcl/minecraft-launcher-core@$(cat tag.log) -f
48+
git tag -f $(cat tag.log)
49+
git push origin tag $(cat tag.log) -f
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
- name: Delete PR head branch

0 commit comments

Comments
 (0)