Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"plugins": ["prettier", "jest", "security"],
"parserOptions": {
"ecmaVersion": 2021
"ecmaVersion": 2023
},
"rules": {
"camelcase": "error",
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/npm-merge-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # refers to actions/setup-node@v3.5.1
with:
node-version: 16
- run: npm i npm@8 -g
node-version: 18
- run: npm i npm@9 -g
- run: npm config set registry https://$ARTIFACTORY_URL
- run: npm config set replace-registry-host npm.pkg.github.com
- run: npm config set //$ARTIFACTORY_URL:_auth "$(echo -n $ARTIFACTORY_TOKEN_EMAIL:$ARTIFACTORY_TOKEN | base64 -w 0)"
- run: npm config set //$ARTIFACTORY_URL:email "$ARTIFACTORY_TOKEN_EMAIL"
- run: npm config set //$ARTIFACTORY_URL:always-auth true
- run: npm install
- run: npm run check
10 changes: 4 additions & 6 deletions .github/workflows/version-tag-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
token: ${{ secrets.GIT_VERSIONING_TOKEN }}
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 16
- run: npm i npm@8 -g
node-version: 18
- run: npm i npm@9 -g
- name: Version and tag
id: version
uses: cloudconformity/npm-version-action@main # no need to a specific hash because we trust internal repos.
Expand All @@ -40,19 +40,17 @@ jobs:
ref: ${{needs.Version.outputs.tag_version}}
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 16
- run: npm i npm@8 -g
node-version: 18
- run: npm i npm@9 -g
# Install
- run: npm config set registry https://$ARTIFACTORY_URL
- run: npm config set replace-registry-host npm.pkg.github.com
- run: npm config set //$ARTIFACTORY_URL:_auth "$(echo -n $ARTIFACTORY_TOKEN_EMAIL:$ARTIFACTORY_TOKEN | base64 -w 0)"
- run: npm config set //$ARTIFACTORY_URL:email "$ARTIFACTORY_TOKEN_EMAIL"
- run: npm config set //$ARTIFACTORY_URL:always-auth true
- run: npm ci
- run: npm run build --if-present
# Publish to Artifactory
- run: npm config set registry https://$ARTIFACTORY_URL_PUBLISH
- run: npm config set //$ARTIFACTORY_URL_PUBLISH:_auth "$(echo -n $ARTIFACTORY_TOKEN_EMAIL:$ARTIFACTORY_TOKEN | base64 -w 0)"
- run: npm config set //$ARTIFACTORY_URL_PUBLISH:email "$ARTIFACTORY_TOKEN_EMAIL"
- run: npm config set //$ARTIFACTORY_URL_PUBLISH:always-auth true
- run: npm publish
Loading