Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit c2e63c6

Browse files
committed
impr: CPO-539 Upgrade to Node 18.x & npm v9
1 parent e5d7b2a commit c2e63c6

File tree

5 files changed

+3636
-1082
lines changed

5 files changed

+3636
-1082
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"plugins": ["prettier", "jest", "security"],
1515
"parserOptions": {
16-
"ecmaVersion": 2021
16+
"ecmaVersion": 2023
1717
},
1818
"rules": {
1919
"camelcase": "error",

.github/workflows/npm-merge-workflow.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ jobs:
1818
persist-credentials: false
1919
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # refers to actions/setup-node@v3.5.1
2020
with:
21-
node-version: 16
22-
- run: npm i npm@8 -g
21+
node-version: 18
22+
- run: npm i npm@9 -g
2323
- run: npm config set registry https://$ARTIFACTORY_URL
2424
- run: npm config set replace-registry-host npm.pkg.github.com
2525
- run: npm config set //$ARTIFACTORY_URL:_auth "$(echo -n $ARTIFACTORY_TOKEN_EMAIL:$ARTIFACTORY_TOKEN | base64 -w 0)"
2626
- run: npm config set //$ARTIFACTORY_URL:email "$ARTIFACTORY_TOKEN_EMAIL"
27-
- run: npm config set //$ARTIFACTORY_URL:always-auth true
2827
- run: npm install
2928
- run: npm run check

.github/workflows/version-tag-publish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
token: ${{ secrets.GIT_VERSIONING_TOKEN }}
1717
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
1818
with:
19-
node-version: 16
20-
- run: npm i npm@8 -g
19+
node-version: 18
20+
- run: npm i npm@9 -g
2121
- name: Version and tag
2222
id: version
2323
uses: cloudconformity/npm-version-action@main # no need to a specific hash because we trust internal repos.
@@ -40,19 +40,17 @@ jobs:
4040
ref: ${{needs.Version.outputs.tag_version}}
4141
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
4242
with:
43-
node-version: 16
44-
- run: npm i npm@8 -g
43+
node-version: 18
44+
- run: npm i npm@9 -g
4545
# Install
4646
- run: npm config set registry https://$ARTIFACTORY_URL
4747
- run: npm config set replace-registry-host npm.pkg.github.com
4848
- run: npm config set //$ARTIFACTORY_URL:_auth "$(echo -n $ARTIFACTORY_TOKEN_EMAIL:$ARTIFACTORY_TOKEN | base64 -w 0)"
4949
- run: npm config set //$ARTIFACTORY_URL:email "$ARTIFACTORY_TOKEN_EMAIL"
50-
- run: npm config set //$ARTIFACTORY_URL:always-auth true
5150
- run: npm ci
5251
- run: npm run build --if-present
5352
# Publish to Artifactory
5453
- run: npm config set registry https://$ARTIFACTORY_URL_PUBLISH
5554
- run: npm config set //$ARTIFACTORY_URL_PUBLISH:_auth "$(echo -n $ARTIFACTORY_TOKEN_EMAIL:$ARTIFACTORY_TOKEN | base64 -w 0)"
5655
- run: npm config set //$ARTIFACTORY_URL_PUBLISH:email "$ARTIFACTORY_TOKEN_EMAIL"
57-
- run: npm config set //$ARTIFACTORY_URL_PUBLISH:always-auth true
5856
- run: npm publish

0 commit comments

Comments
 (0)