Skip to content

Commit

Permalink
chore: correct the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Jan 22, 2020
1 parent caa796c commit ceccb53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
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
Expand Down

0 comments on commit ceccb53

Please sign in to comment.