not sure if its a single line you still need pipeline. but you are missing | on your lines for
- script:
swift package-registry login {myrepourl}/login --token mytoken
- script:
swift package-registry set --global {myrepourl}
while you have | for the other script lines. if its a single line i always put it next to the - script: element.
can you post logs for these two? it seems like you didnt properly login