Skip to content

Commit 2b583f7

Browse files
update ci-cd to simplify RC releases
1 parent 2939a97 commit 2b583f7

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: npm run test-node
5656

5757
- name: npm build
58-
run: BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") BUILD_COMMIT=${{ github.sha }} npm run build
58+
run: BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") npm run build
5959

6060
- name: Store assets
6161
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master') }}

.github/workflows/sonar-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: npm run check
3333

3434
- name: npm Build
35-
run: BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") BUILD_COMMIT=${{ github.sha }} npm run build
35+
run: BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") npm run build
3636

3737
- name: SonarQube Scan (Push)
3838
if: github.event_name == 'push'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"build-umd:stats": "webpack --progress --env production --json > ./stats/stat_results.json",
9292
"build-cjs": "rimraf lib && tsc -outDir lib -m CommonJS",
9393
"postbuild-cjs": "cross-env NODE_ENV=cjs node scripts/copy.packages.json.js && ./scripts/build_cjs_replace_imports.sh",
94-
"build-umd": "webpack --config webpack.dev.js --env branch=$BUILD_BRANCH --env commit_hash=$BUILD_COMMIT && webpack --config webpack.prod.js --env branch=$BUILD_BRANCH --env commit_hash=$BUILD_COMMIT && ./scripts/clean_umd_build.sh",
94+
"build-umd": "webpack --config webpack.dev.js --env branch=$BUILD_BRANCH && webpack --config webpack.prod.js --env branch=$BUILD_BRANCH && ./scripts/clean_umd_build.sh",
9595
"build:npm": "rimraf lib es && npm run build-cjs && npm run build-esm",
9696
"build:ga-to-split-autorequire": "terser ./node_modules/@splitsoftware/splitio-commons/src/integrations/ga/autoRequire.js --mangle --output ./scripts/ga-to-split-autorequire.js && cp ./scripts/ga-to-split-autorequire.js umd/ga-to-split-autorequire.js",
9797
"build": "rimraf lib umd es && npm run build-cjs && npm run build-esm && npm run build-umd",

types/splitio.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ interface ILoggerAPI {
158158
*/
159159
interface IUserConsentAPI {
160160
/**
161-
* Set or update the user consent status. Possible values are `true` and `false`, which represent user consent `'GRANTED'` and `'DECLINED'` respectively.
161+
* Sets or updates the user consent status. Possible values are `true` and `false`, which represent user consent `'GRANTED'` and `'DECLINED'` respectively.
162162
* - `true ('GRANTED')`: the user has granted consent for tracking events and impressions. The SDK will send them to Split cloud.
163163
* - `false ('DECLINED')`: the user has declined consent for tracking events and impressions. The SDK will not send them to Split cloud.
164164
*
@@ -170,7 +170,7 @@ interface IUserConsentAPI {
170170
*/
171171
setStatus(userConsent: boolean): boolean;
172172
/**
173-
* Get the user consent status.
173+
* Gets the user consent status.
174174
*
175175
* @function getStatus
176176
* @returns {ConsentStatus} The user consent status.

webpack.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ const VERSION = pkg.version;
77
module.exports = env => merge(common, {
88
mode: 'development',
99
output: {
10-
filename: `[name]${env.branch !== 'master' ? `-dev-${env.commit_hash || VERSION}` : `-${VERSION}`}.js`
10+
filename: `[name]${env.branch !== 'master' ? `-dev-${VERSION}` : `-${VERSION}`}.js`
1111
}
1212
});

webpack.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const VERSION = pkg.version;
77
module.exports = env => merge(common, {
88
mode: 'production',
99
output: {
10-
filename: `[name]${env.branch !== 'master' ? `-dev-${env.commit_hash || VERSION}` : `-${VERSION}`}.min.js`
10+
filename: `[name]${env.branch !== 'master' ? `-dev-${VERSION}` : `-${VERSION}`}.min.js`
1111
},
1212
performance: {
1313
hints: 'error', // build fails if asset size exceeded

0 commit comments

Comments
 (0)