Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .ado/azure-pipelines.publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ extends:
displayName: 'yarn buildci [test]'

- script: |
yarn config set npmPublishAccess public
yarn config set npmPublishRegistry "https://registry.npmjs.org"
yarn config set npmAuthToken $(npmAuth)
displayName: 'Configure yarn for npm publishing'
Expand All @@ -83,12 +84,12 @@ extends:
- script: |
# https://github.com/changesets/changesets/issues/432
# We can't use `changeset publish` because it doesn't support workspaces, so we have to publish each package individually
yarn workspaces foreach --all --topological --no-private \
exec node $(Build.SourcesDirectory)/.github/scripts/publish-package-if-needed.mts
yarn workspaces foreach -vv --all --topological --no-private npm publish --tolerate-republish
displayName: 'Publish NPM Packages'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'), not(${{ parameters.skipNpmPublish }}))

- script: |
yarn config unset npmPublishAccess
yarn config unset npmAuthToken
yarn config unset npmPublishRegistry
displayName: 'Cleanup yarn npm config'
Expand Down
64 changes: 0 additions & 64 deletions .github/scripts/publish-package-if-needed.mts

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,7 @@ jobs:

- name: Simulate publish
run: |
yarn workspaces foreach --all --topological --no-private \
exec node $(pwd)/.github/scripts/publish-package-if-needed.mts --dry-run
yarn workspaces foreach -vv --all --topological --no-private npm publish --tolerate-republish --dry-run

test-links:
name: Test repo links
Expand Down
Loading