ci: use yarn to create new version

This commit is contained in:
iCrawl 2022-01-08 01:47:00 +01:00
parent 9760fd1b77
commit 53971f0de9
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2

View file

@ -39,7 +39,7 @@ jobs:
- name: Publish
if: steps.pre-release.outputs.release == 'true'
run: |
npm version --git-tag-version=false $(jq --raw-output '.version' packages/discord.js/package.json).$(date +%s).$(git rev-parse --short HEAD)
yarn workspace discord.js version --no-git-tag-version --new-version $(jq --raw-output '.version' packages/discord.js/package.json).$(date +%s).$(git rev-parse --short HEAD)
yarn workspace discord.js publish --tag dev || true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}