ci: fix docs source url on tag push (#10398)

This commit is contained in:
Qjuh
2024-07-31 21:56:54 +02:00
committed by GitHub
parent 057fc89c92
commit 48682ad474

View File

@@ -75,7 +75,7 @@ jobs:
- name: Apply tag to api-extractor config - name: Apply tag to api-extractor config
if: ${{ env.REF_TYPE == 'tag' && !inputs.ref }} if: ${{ env.REF_TYPE == 'tag' && !inputs.ref }}
run: sed -i 's!https://github.com/discordjs/discord.js/tree/main!https://github.com/discordjs/discord.js/tree/${{ steps.extract-tag.outputs.semver }}!' "packages/${{ steps.extract-tag.outputs.package}}/api-extractor.json" run: sed -i 's!https://github.com/discordjs/discord.js/tree/main!https://github.com/discordjs/discord.js/tree/${{ github.ref_name }}!' "packages/${{ steps.extract-tag.outputs.package}}/api-extractor.json"
- name: Build docs - name: Build docs
run: pnpm run docs run: pnpm run docs