@uxf/scripts
v11.41.6
Published
# @uxf/scripts [![npm](https://img.shields.io/npm/v/@uxf/scripts)](https://www.npmjs.com/package/@uxf/scripts) [![size](https://img.shields.io/bundlephobia/min/@uxf/scripts)](https://www.npmjs.com/package/@uxf/scripts) [![quality](https://img.shields.io/n
Downloads
606
Readme
@uxf/scripts
@uxf/scripts
uxf-release
UXF release helper
Usage:
uxf-release [options]
Environment variables:
GITLAB_TOKEN - required
CI_SERVER_URL - required - setting by GitLab CI
CI_PROJECT_ID - required - setting by GitLab CI
SLACK_WEBHOOK_URL - optional
Options
-p, --project-id GitLab project id (or use environment variable
CI_PROJECT_ID) [number]
-d, --dry-run Skip publishing and sending slack notification [boolean]
-h, --help Show help [boolean]
Options:
--version Show version number [boolean]
How to use in gitlab pipeline .gitlab-ci.yml
set environment variable GITLAB_TOKEN
in GitLab CI configuration and create .gitlab-ci.yml
# .gitlab-ci.yml
stages:
- release
release:
image: node:12-buster-slim
stage: release
before_script:
- yarn global add @uxf/release
script:
# ... deploy project ...
- uxf-release
uxf-push-notifier
stages:
- notify
notify-push:
image: node:20
stage: notify
except: [schedules]
only:
- develop # default branch
script:
- yarn global add @uxf/scripts # uxf scripts are installed in uxf docker images by default
- uxf-push-notifier --google-chat-webhook-url=$GOOGLE_CHAT_WEBHOOK
uxf-lunch
UXF lunch
Usage:
uxf-lunch [options]
Environment variables:
SLACK_TOKEN - required
Options
--slack-channel Slack channel [string]
-h, --help Show help [boolean]
Options:
--version Show version number