Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • change-demo-deploy
  • change-images
  • codeception-with-optional-step
  • exclude-wp-assets
  • feat/acceptance-tests
  • feat/demo-deploy
  • feat/npm-publish
  • feature/apigen
  • feature/codeception-coverage
  • feature/codeception-memory
  • feature/codeception-params
  • feature/coverage-in-mr
  • feature/deploy-composer.json
  • feature/mysql-bin-logs
  • feature/prepare-codeception-tests
  • feature/reportportal
  • feature/speedup
  • fix/linter
  • fix/silenced-copy
  • globally-raise-mem-limit
  • improve-parallelization
  • include-composer-json
  • linter
  • linter-exit
  • master
  • remove-free-translations
  • remove-smoke
  • skip-codecept-for-libs
  • split-workflow
  • update_codecept_image
  • no-symlink2
31 results

Target

Select target project
  • wpdesk/gitlab-ci
1 result
Select Git revision
  • change-demo-deploy
  • change-images
  • codeception-with-optional-step
  • exclude-wp-assets
  • feat/acceptance-tests
  • feat/demo-deploy
  • feat/npm-publish
  • feature/apigen
  • feature/codeception-coverage
  • feature/codeception-memory
  • feature/codeception-params
  • feature/coverage-in-mr
  • feature/deploy-composer.json
  • feature/mysql-bin-logs
  • feature/prepare-codeception-tests
  • feature/reportportal
  • feature/speedup
  • fix/linter
  • fix/silenced-copy
  • globally-raise-mem-limit
  • improve-parallelization
  • include-composer-json
  • linter
  • linter-exit
  • master
  • remove-free-translations
  • remove-smoke
  • skip-codecept-for-libs
  • split-workflow
  • update_codecept_image
  • no-symlink2
31 results
Show changes
Commits on Source (2)
  • Bartek Jaskulski's avatar
    feat: add npm registry configuration · d89dae89
    Bartek Jaskulski authored
    This commit introduces a new npm registry configuration file and updates the prepare script to support npm package publishing.
    
    The new `includes/nodejs/registry.yml` file defines variables and a job for publishing npm packages to the GitLab package registry. It allows specifying the npm registry scope and configures the `.npmrc` file with the necessary authentication token.
    
    The `includes/prepare.yml` file is updated to configure the npm registry for both `octolize` and `wpdesk` scopes, ensuring that npm packages can be properly installed and published
    Verified
    d89dae89
  • Bartek Jaskulski's avatar
    Merge branch 'feat/npm-publish' into 'master' · 15a63de3
    Bartek Jaskulski authored
    feat: add npm registry configuration
    
    See merge request wpdesk/gitlab-ci!271
    15a63de3
variables:
WPDESK_CI_VERSION: "2024.12.10"
WPDESK_CI_VERSION: "2025.04.03"
MYSQL_ROOT_PASSWORD: "mysql"
MYSQL_DATABASE: "wptest"
MYSQL_USER: "mysql"
......@@ -30,18 +30,19 @@ include:
- project: 'wpdesk/gitlab-ci'
ref: 'master'
file:
- '/includes/prepare.yml'
- '/includes/translations.yml'
- '/includes/tests/static-analysis.yml'
- '/includes/tests/lint.yml'
- '/includes/tests/unit.yml'
- '/includes/tests/version-cohesion.yml'
- '/includes/tests/codeception-integration.yml'
- '/includes/tests/codeception.yml'
- '/includes/tests/codeception-parallel.yml'
- '/includes/tests/integration.yml'
- '/includes/deploy.yml'
- '/includes/deploy/demo.yml'
- '/includes/mixins/.after-codeception.yml'
- '/includes/mixins/.composer-auth.yml'
- '/includes/mixins/.skip-mr.yml'
- '/includes/nodejs/registry.yml'
- '/includes/prepare.yml'
- '/includes/tests/codeception-integration.yml'
- '/includes/tests/codeception-parallel.yml'
- '/includes/tests/codeception.yml'
- '/includes/tests/integration.yml'
- '/includes/tests/lint.yml'
- '/includes/tests/static-analysis.yml'
- '/includes/tests/unit.yml'
- '/includes/tests/version-cohesion.yml'
- '/includes/translations.yml'
variables:
NPM_REGISTRY_SCOPE:
value: wpdesk
options:
- wpdesk
- octolize
description: The scope of the npm registry
npm:publish:
rules:
- if: $IS_NPM_LIBRARY && $CI_COMMIT_TAG
stage: deploy
script:
- echo "@${NPM_REGISTRY_SCOPE}:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" > .npmrc
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
- npm publish
......@@ -53,8 +53,9 @@ prepare npm assets:
before_script:
- mkdir -p /cache/npm-cache
- npm config set cache /cache/npm-cache --global
- npm config set -- //${CI_SERVER_HOST}/:_authToken=${PREDATORS_DEPLOY_TOKEN}
- npm config set -- //${CI_SERVER_HOST}/:_authToken=${CI_DEPLOY_TOKEN}
- npm config set @octolize:registry=https://${CI_SERVER_HOST}/api/v4/packages/npm/
- npm config set @wpdesk:registry=https://${CI_SERVER_HOST}/api/v4/packages/npm/
- npm config list
script:
- if [[ -f package.json ]]; then npm install --no-audit --progress=false; fi
......