Skip to content

Commit

Permalink
🚀[ci] publish npm packages on tag (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaudan authored Dec 18, 2019
1 parent 68612de commit 9e11862
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ deploy-release:
image: $CI_IMAGE
script:
- yarn
- TARGET_DATACENTER=us TARGET_ENV=production VERSION=release yarn build
- ./scripts/publish-npm.sh
- ./scripts/deploy.sh prod us
- TARGET_DATACENTER=eu TARGET_ENV=production VERSION=release yarn build:bundle
- ./scripts/deploy.sh prod eu
- TARGET_DATACENTER=us TARGET_ENV=production VERSION=release yarn build:bundle
- ./scripts/deploy.sh prod us

########################################################################################################################
# Notify
Expand Down
6 changes: 6 additions & 0 deletions scripts/publish-npm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -euo pipefail

export NPM_TOKEN=$(aws ssm get-parameter --region us-east-1 --name ci.browser-sdk.npm_token --with-decryption --query "Parameter.Value" --out text)
yarn lerna publish from-git --yes

0 comments on commit 9e11862

Please sign in to comment.