Skip to content
Merged
Changes from 1 commit
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
Next Next commit
docs: use rules instead of only in README examples
  • Loading branch information
F3n67u committed Apr 10, 2024
commit 7af3ca8e70944765e334e400e9b3b4a74e84a3b1
29 changes: 18 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ before_script: yarn --frozen-lockfile
comment:
image: node:lts-alpine
stage: comment
only: merge_requests
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
script: yarn changesets-gitlab comment # comment automatically like https://github.com/changesets/bot

release:
image: node:lts-alpine
only: main
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script: yarn changesets-gitlab
```

Expand All @@ -95,12 +97,14 @@ before_script: yarn --frozen-lockfile
comment:
image: node:lts-alpine
stage: comment
only: merge_requests
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
script: yarn changesets-gitlab comment

release:
image: node:lts-alpine
only: main
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script: yarn changesets-gitlab
variables:
INPUT_PUBLISH: yarn release
Expand Down Expand Up @@ -139,13 +143,14 @@ before_script: yarn --frozen-lockfile
comment:
image: node:lts-alpine
stage: comment
only:
- merge_requests
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
script: yarn changesets-gitlab comment

release:
image: node:lts-alpine
only: main
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script: yarn changesets-gitlab
variables:
INPUT_VERSION: yarn version
Expand All @@ -165,13 +170,14 @@ before_script: yarn --frozen-lockfile
comment:
image: node:lts-alpine
stage: comment
only:
- merge_requests
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
script: yarn changesets-gitlab comment

release:
image: node:lts-alpine
only: main
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script: yarn changesets-gitlab
variables:
INPUT_VERSION: yarn changeset version
Expand All @@ -182,7 +188,8 @@ You may also want to run `yarn install` after the `changeset verion` command to
```yml
release:
image: node:lts-alpine
only: main
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script: yarn changesets-gitlab
variables:
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false'
Expand Down