un-ts / changesets-gitlab

GitLab CI cli for changesets like its GitHub Action.
https://opencollective.com/unts/projects/changesets-gitlab
MIT License
86 stars 33 forks source link

.gitlab-ci.yml in example has syntax error #185

Closed jaesoekjjang closed 3 months ago

jaesoekjjang commented 3 months ago

Hi, i guess the current example of .gitlab-ci.yml has syntax errors

스크린샷 2024-05-26 오후 11 42 32 스크린샷 2024-05-26 오후 11 43 26
stages:
  - comment
  - release

before_script: yarn --frozen-lockfile

comment:
  image: node:lts-alpine
  stage: comment 
  # only: merge_requests #fixed
  only:
    - merge_requests
  script: yarn changesets-gitlab comment

release:
  image: node:lts-alpine
  stage: release # added
  # only: main # fixed
  only: 
    - main
  script: yarn changesets-gitlab
  variables:
    INPUT_PUBLISH: yarn release

Fixing this way solved syntax errors for me. I can create a PR for this if you don't mind