Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# sqlit

## [Unreleased]
### Changed
- Publish to SAGE NPM registry.

## [1.1.0]
### Changed
- Skip mysqladmin on deploy.
Expand Down
21 changes: 21 additions & 0 deletions bin/ci/prepare
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -e
set -x
cd "$(dirname "$0")/../.."

main() {
sign_in_npm_registry
sign_in_docker
}

sign_in_npm_registry() {
local path=//git.gotosage.com/api/v4/projects/513/packages/npm/
echo "@tillit-do-scheduler:registry=https:$path" >> ~/.npmrc
echo "$path:_authToken=$NEXUS_TOKEN" >> ~/.npmrc
}

sign_in_docker() {
echo "$DOCKER_PASSWORD" | docker login "-u$DOCKER_USER" --password-stdin
}

main
5 changes: 5 additions & 0 deletions bin/ci/publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
set -x
cd "$(dirname "$0")/../.."
exec bin/yarn run exec bin/lib/publish
7 changes: 0 additions & 7 deletions bin/deploy

This file was deleted.

8 changes: 8 additions & 0 deletions bin/lib/publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
set -x
cd "$(dirname "$0")/../.."
npx semver "$CODEBUILD_SOURCE_VERSION" || exit 0
tsc
npm version --no-git-tag-version "$CODEBUILD_SOURCE_VERSION"
exec npm publish
8 changes: 0 additions & 8 deletions bin/prepare
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ main() {
install_mysqldump
check_requirements
copy_env_sh
sign_in_nexus
install_npm_packages
setup_mysql
}
Expand All @@ -22,13 +21,6 @@ copy_env_sh() {
cp -v env.sh{.example,}
}

sign_in_nexus() {
[ -n "$CODEBUILD_BUILD_ID" ] || return 0
[ -n "$VERSION" ] || return 0
echo @ailytic:registry=http://nexus.dev.ailytic.com:8081/repository/ailytic-npm-hosted/ >> ~/.npmrc
echo "//nexus.dev.ailytic.com:8081/repository/ailytic-npm-hosted/:_authToken=NpmToken.$NEXUS_TOKEN" >> ~/.npmrc
}

install_npm_packages() {
bin/yarn --frozen-lockfile
}
Expand Down
13 changes: 0 additions & 13 deletions bin/publish

This file was deleted.

5 changes: 3 additions & 2 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ version: 0.2
phases:
install:
runtime-versions:
docker: 18
nodejs: 10
nodejs: 12
commands:
- bin/ci/prepare
- bin/prepare
build:
commands:
- bin/test
- bin/ci/publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ailytic/sqlit",
"name": "@tillit-do-scheduler/sqlit",
"version": "0.0.0",
"description": "Sqlit - A library that makes database access easy and fun",
"main": "./dist/index.js",
Expand Down
38 changes: 5 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@
dependencies:
"@types/node" "*"

"@types/node@*":
version "12.12.17"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.17.tgz#191b71e7f4c325ee0fb23bc4a996477d92b8c39b"
integrity sha512-Is+l3mcHvs47sKy+afn2O1rV4ldZFU7W8101cNlOd+MRbjM4Onida8jSZnJdTe/0Pcf25g9BNIUsuugmE6puHA==

"@types/node@^9.4.7":
"@types/node@*", "@types/node@^9.4.7":
version "9.6.55"
resolved "https://registry.yarnpkg.com/@types/node/-/node-9.6.55.tgz#7cc1358c9c18e71f6c020e410962971863232cf5"
integrity sha512-e/5tg8Ok0gSrN6pvHphnwTK0/CD9VPZrtZqpvvpEFAtfs+ZntusgGaWkf2lSEq1OFe2EDPeUMiMVpy4nZpJ4AQ==
Expand Down Expand Up @@ -1136,16 +1131,11 @@ extglob@^2.0.4:
snapdragon "^0.8.1"
to-regex "^3.0.1"

[email protected]:
[email protected], extsprintf@^1.2.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=

extsprintf@^1.2.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f"
integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8=

fast-deep-equal@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49"
Expand Down Expand Up @@ -2638,7 +2628,7 @@ minimatch@^3.0.2, minimatch@^3.0.3, minimatch@^3.0.4:
dependencies:
brace-expansion "^1.1.7"

[email protected]:
[email protected], minimist@~0.0.1:
version "0.0.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=
Expand All @@ -2648,11 +2638,6 @@ minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0:
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=

minimist@~0.0.1:
version "0.0.10"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf"
integrity sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=

minipass@^2.6.0, minipass@^2.8.6, minipass@^2.9.0:
version "2.9.0"
resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.9.0.tgz#e713762e7d3e32fed803115cf93e04bca9fcc9a6"
Expand Down Expand Up @@ -3462,16 +3447,11 @@ rsvp@^3.3.3:
resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a"
integrity sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==

[email protected], safe-buffer@~5.1.0, safe-buffer@~5.1.1:
[email protected], safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.2"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==

safe-buffer@^5.0.1, safe-buffer@^5.1.2:
version "5.2.0"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519"
integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==

safe-regex@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"
Expand Down Expand Up @@ -3902,15 +3882,7 @@ to-regex@^3.0.1, to-regex@^3.0.2:
regex-not "^1.0.2"
safe-regex "^1.1.0"

tough-cookie@^2.3.3, tough-cookie@^2.3.4:
version "2.5.0"
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2"
integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==
dependencies:
psl "^1.1.28"
punycode "^2.1.1"

tough-cookie@~2.4.3:
tough-cookie@^2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781"
integrity sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==
Expand Down