I have responded on this topic: Testnet deployment error: Could not create addresses from your mnemonic or private key(s)
Please note, the Learn guides have been updated to show this for Truffle and Hardhat: https://docs.openzeppelin.com/learn/connecting-to-public-test-networks