From c319e2685e168d99de9248b377426002e04d51d4 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sat, 22 Oct 2022 01:16:30 +0100 Subject: [PATCH] Fix publish-next --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8c6726d..bec4752 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -207,10 +207,10 @@ publish-github: publish-next: stage: deploy script: - - | - export VERSION=`[ "$CI_COMMIT_BRANCH" != "main" ] || node resources/build/ci-main-version.js` - "node -e \"fs.writeFileSync('package.json', JSON.stringify((json => {json.version = process.env.VERSION || json.version; json.__nxapi_release = process.env.CI_COMMIT_TAG; return json;})(JSON.parse(fs.readFileSync('package.json', 'utf-8'))), null, 4) + '\\n', 'utf-8')\"" + - export VERSION=`[ "$CI_COMMIT_BRANCH" != "main" ] || node resources/build/ci-main-version.js` + - "node -e \"fs.writeFileSync('package.json', JSON.stringify((json => {json.version = process.env.VERSION || json.version; json.__nxapi_release = process.env.CI_COMMIT_TAG; return json;})(JSON.parse(fs.readFileSync('package.json', 'utf-8'))), null, 4) + '\\n', 'utf-8')\"" + - | if [ "$CI_COMMIT_BRANCH" = "main" -a "$VERSION" != "" ]; then if [ "$NPM_PUBLISH_NEXT" = "true" -a "$NPM_TOKEN" != "" ]; then echo "Publishing $VERSION to npm"