message: Improve publish:github action schema
diff: @@ -169,9 +169,8 @@ export function createPublishGithubAction(options: {
  type: 'array',
  items: {
  type: 'object',
  + additionalProperties: false,
  required: ['access'],
  - oneOf: [
  - {
  properties: {
  access: {
  type: 'string',
  @@ -183,29 +182,10 @@ export function createPublishGithubAction(options: {
  description:
  'The name of the user that will be added as a collaborator',
  },
  - },
  - },
  - {
  - properties: {
  - access: {
  - type: 'string',
  - description: 'The type of access for the user',
  - enum: ['push', 'pull', 'admin', 'maintain', 'triage'],
  - },
  - /** @deprecated This field is deprecated in favor of team */
  username: {
  type: 'string',
  - description: 'Not a valid field anymore',
  - },
  - },
  - },
  - {
  - additionalProperties: false,
  - properties: {
  - access: {
  - type: 'string',
  - description: 'The type of access for the team',
  - enum: ['push', 'pull', 'admin', 'maintain', 'triage'],
  + description:
  + 'Deprecated. Use the `team` or `user` field instead.',
  },
  team: {
  type: 'string',
  @@ -213,7 +193,10 @@ export function createPublishGithubAction(options: {
  'The name of the team that will be added as a collaborator',
  },
  },
  - },
  + oneOf: [
  + { required: ['user'] },
  + { required: ['username'] },
  + { required: ['team'] },
  ],
  },
  },
  