# @nexapp/notify-deployment

> Notify slack for gitlab deployment

Latest version **1.0.2** (published 2022-03-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @nexapp/notify-deployment
pnpm add @nexapp/notify-deployment
yarn add @nexapp/notify-deployment
bun add @nexapp/notify-deployment
```

Provides the command `notify-deployment`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-03-29 |
| First published | 2022-03-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dominique Richard |
| Maintainers | gjean-nexapp, pluc_nexapp, mbergeron, tristanod, hsebouai-nexapp, sebdufbeau, gabsima-nexapp, drichard-nexapp |
| Keywords | slack, gitlab, deployment, ci, notification |

## Links

- npm: https://www.npmjs.com/package/@nexapp/notify-deployment
- Repository: https://github.com/Nexapp/notify-deployment
- Issues: https://github.com/Nexapp/notify-deployment/issues
- npm.io page: https://npm.io/package/@nexapp/notify-deployment

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.26.1
- [yargs](https://npm.io/package/yargs.md) ^17.4.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-03-29
- 1.0.1 — 2022-03-29
- 1.0.0 — 2022-03-29

## README

# Notify-Deployment

Small lib to send slack notification about Gitlab deployment.
It is less noisy then Gitlab since you can control on what environment you want it.

You must add in the repository CI/CD variables the slack URL for the bot.

```yml
 variables:
  SLACK_URL: $SLACK_URL
```

You can add a CI variable to easily reuse commands.

```yml
.notification:
  before_script:
    - npx @nexapp/notify-deployment --step start
  after_script:
    - npx @nexapp/notify-deployment --step finish
```

If there is already a before_script or after_script, you can merge them using references.

```yml
deploy/production:
  extends:
    - .deploy
  before_script:
    - !reference [.deploy, before_script]
    - !reference [.notification, before_script]
  after_script:
    - !reference [.notification, after_script]
```

Available argument:

```sh
npx @nexapp/notify-deployment --step (start|finish)
```

It customizes the message to notify when the deployment start and when it ends.

---
_Source: https://npm.io/package/@nexapp/notify-deployment · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
