From ceccb53b3433798837ff0b209368745bd83ee415 Mon Sep 17 00:00:00 2001 From: ci010 Date: Wed, 22 Jan 2020 23:36:41 +0800 Subject: [PATCH] chore: correct the workflow --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 63564fbdd..0372837cc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -41,12 +41,12 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - name: Publish Tag run: | - node --eval "console.log(JSON.parse(require('fs').readFileSync('packages/launcher-core/package.json').toString()).version)" > tag.log + node --eval "console.log(JSON.parse(require('fs').readFileSync('package.json').toString()).version)" > tag.log git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/voxelum/minecraft-launcher-core-node.git" git config user.name ci010 git config user.email cijhn@hotmail.com - git tag -f @xmcl/minecraft-launcher-core@$(cat tag.log) - git push origin tag @xmcl/minecraft-launcher-core@$(cat tag.log) -f + git tag -f $(cat tag.log) + git push origin tag $(cat tag.log) -f env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Delete PR head branch