-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable automatic development npm deployments on merge to main.
- Loading branch information
Will Scullin
authored
Nov 8, 2022
1 parent
cff296c
commit 83299c9
Showing
15 changed files
with
69 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
//registry.npmjs.org/:_authToken=${NPM_TOKEN} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
steps: | ||
- id: deploy-marketplace | ||
- id: deploy-npm | ||
name: "nixos/nix" | ||
entrypoint: sh | ||
args: | ||
- -c | ||
- "./cloudbuild/deploy/$TRIGGER_NAME.sh" | ||
timeout: "1600s" | ||
secretEnv: ["VSCE_PAT", "GA_API_SECRET", "GA_MEASUREMENT_ID"] | ||
logsBucket: "gs://malloy-cloudbuild-logs" | ||
timeout: "1600s" | ||
secretEnv: ["NPM_TOKEN"] | ||
options: | ||
logging: CLOUD_LOGGING_ONLY | ||
timeout: "1800s" | ||
availableSecrets: | ||
secretManager: | ||
- versionName: projects/malloy-303216/secrets/marketplace-prerelease-CI/versions/latest | ||
env: "VSCE_PAT" | ||
- versionName: projects/malloy-303216/secrets/vscode-extension-CI-GA-API-SECRET/versions/latest | ||
env: "GA_API_SECRET" | ||
- versionName: projects/malloy-303216/secrets/vscode-extension-CI-GA-MEASUREMENT-ID/versions/latest | ||
env: "GA_MEASUREMENT_ID" | ||
- versionName: projects/malloy-303216/secrets/npm-publish/versions/latest | ||
env: "NPM_TOKEN" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
export PACKAGES="packages/malloy packages/malloy-db-bigquery packages/malloy-db-duckdb packages/malloy-db-postgres packages/malloy-render" | ||
|
||
nix-shell --pure --keep NPM_TOKEN --keep PACKAGES --command "$(cat <<NIXCMD | ||
set -euxo pipefail | ||
cd /workspace | ||
npm --no-audit --no-fund ci --loglevel error | ||
npm run build | ||
echo Publishing \$PACKAGES | ||
PRERELEASE=\$(date +%y%m%d%H%M%S) | ||
for package in \$PACKAGES; do | ||
VERSION=\$(jq -r .version \$package/package.json) | ||
echo Publishing \$package \$VERSION-\$PRERELEASE | ||
npm version -w \$package \$VERSION-\$PRERELEASE | ||
npm publish -w \$package --tag next | ||
done | ||
NIXCMD | ||
)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
with import <nixpkgs> {}; stdenv.mkDerivation { name = "malloy"; buildInputs = [ nodejs-16_x jdk8 google-cloud-sdk postgresql ruby.devEnv git fakeroot]; } | ||
with import <nixpkgs> {}; stdenv.mkDerivation { name = "malloy"; buildInputs = [ nodejs-16_x jdk8 google-cloud-sdk postgresql ruby.devEnv git jq fakeroot]; } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters