diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 197c742..4db93f9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,10 +42,13 @@ publish:development: # Configure git to push with CI token - git remote set-url origin "https://gitlab-ci-token:$GL_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.git" - # Checkout the development branch so that we're not on a detached HEAD (which GitLab CI will default to). - - git checkout development - # Forcefully pull the latest changes. - - git pull + # Ensure full Git history so Lerna can detect changes + - git fetch --unshallow + - git fetch origin development + + # Check the current HEAD and the associated branch + - 'echo "CI_COMMIT_SHA: ${CI_COMMIT_SHA}"' + - git log -1 # Setup npm config for npmjs.com - npm config set registry https://registry.npmjs.org/ diff --git a/packages/primitives/src/script.ts b/packages/primitives/src/script.ts index 6d3497e..4f9c607 100644 --- a/packages/primitives/src/script.ts +++ b/packages/primitives/src/script.ts @@ -115,6 +115,16 @@ export class Script { return new this(assembleResult.bytecode); } + /** + * Create a Script Entity from the given CashASM String. + * + * @param cashASM String of CashASM to compile. + * @param data AddressData to pass to the CashASM compiler + * + * @throws {Error} If script cannot be decoded. + * + * @returns The created Script Entity. + */ public static fromCashASM( cashASM: string, data?: Record,