@k-int/bruno-shared-scripts 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitlab-ci.yml CHANGED
@@ -1,40 +1,51 @@
1
- default:
2
- # image: docker.libsdev.k-int.com/knowledgeintegration/stripes-build-agent:latest
3
- # See https://github.com/angular/angular/blob/main/CONTRIBUTING.md#commit-header
4
- image:
5
- name: node:20
6
- pull_policy: always
1
+ # Base templates for setting up the module in the various stages
2
+ .npm_config_setup:
7
3
  before_script:
8
- # - npm config set @folio:registry "https://nexus.libsdev.k-int.com/repository/libsdev-npm-group/"
9
- # - npm config set @knowledge-integration:registry "https://nexus.libsdev.k-int.com/repository/libsdev-npm-hosted/"
4
+ - apt-get -qq update
5
+ - apt-get install -y jq # JQ is always needed, we will need to add curl for our publish module descriptor
6
+ - npm config set @folio:registry "https://nexus.libsdev.k-int.com/repository/libsdev-npm-group/"
7
+ - npm config set @knowledge-integration:registry "https://nexus.libsdev.k-int.com/repository/libsdev-npm-hosted/"
8
+ # Set auth tokens for nexus registries
10
9
  - npm config set -- //nexus.libsdev.k-int.com/repository/libsdev-npm-hosted/:_authToken $KI_NEXUS_NPM_TOKEN
11
10
  - npm config set -- //nexus.libsdev.k-int.com/repository/libsdev-npm-snapshots-hosted/:_authToken $KI_NEXUS_NPM_TOKEN
12
- # - npm config set registry "https://nexus.libsdev.k-int.com/repository/libsdev-npm-group/"
13
- # - npm config set @k-int:registry "https://nexus.libsdev.k-int.com/repository/libsdev-npm-hosted/"
14
- # - npm --registry "https://nexus.libsdev.k-int.com/repository/libsdev-npm-hosted/" adduser
15
- # - npm --registry "https://nexus.libsdev.k-int.com/repository/libsdev-npm-hosted/" whoami
16
- # - export NPM_TOKEN="$KI_NEXUS_NPM_TOKEN"
17
- - export NPM_TOKEN="$NPMJS_TOKEN"
18
- - git config --global user.name "ethanfreestone"
19
- - git config --global user.email "ethan.freestone@k-int.com"
20
- - npm install
21
- - echo "token $GITLAB_TOKEN $NPM_TOKEN $KI_NEXUS_NPM_TOKEN"
11
+
12
+ .dependencies_install:
13
+ extends: .npm_config_setup
14
+ before_script:
15
+ ## Extending the npm configuration
16
+ - !reference [.npm_config_setup, before_script]
17
+ - yarn install
18
+
19
+ default:
20
+ #image: docker.libsdev.k-int.com/knowledgeintegration/stripes-build-agent:2.1.0
21
+ image: node:22
22
22
  cache:
23
23
  key: ${CI_COMMIT_REF_SLUG}
24
24
  paths:
25
25
  - .npm/
26
+ - ./module-descriptor.json
26
27
  tags:
27
28
  - docker
28
- # - docker-18
29
+ #- docker-18
29
30
  - ki-onprem
31
+
30
32
  stages:
31
33
  - release
34
+
32
35
  publish:
33
36
  stage: release
37
+ extends: .dependencies_install
34
38
  only:
35
- - main
39
+ - main # Only run on the 'release' branch or version n.x branches
36
40
  - /^[0-9]+.x/
41
+ id_tokens:
42
+ NPM_ID_TOKEN:
43
+ aud: "npm:registry.npmjs.org"
37
44
  script:
38
- - npm run semantic-release
39
- # We just need to npm-publish
40
- # - npm --registry "$NPM_REGISTRY" publish --tag "${versionMajMin}-dev"
45
+ #- export NPM_TOKEN="$NPMJS_TOKEN" # This is deprecated in favour of Trusted Publishers
46
+ - echo $NODE_ENV
47
+ - export NODE_ENV=dev
48
+ - git config --global user.name "$GITLAB_USER_LOGIN" # Should be whoever triggered the pipeline
49
+ - git config --global user.email "$GITLAB_USER_EMAIL"
50
+ - npx semantic-release
51
+ #- echo "token $GITLAB_TOKEN $NPM_TOKEN $KI_NEXUS_NPM_TOKEN"
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.2.1](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/compare/v1.2.0...v1.2.1) (2025-10-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** Update "@semantic-release/gitlab" dependency ([770a6e2](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/commit/770a6e23445c44ef197357f4e9d20e8f0f0d3a90))
7
+ * Release from `main` branch for bruno-shared-scripts ([3f03c3e](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/commit/3f03c3eccb5f0bde3acb091955ef7f840e6d6dc5))
8
+ * Update release pipeline to use OIDC Trusted Publisher workflow ([7eafa63](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/commit/7eafa63a63d6630f4540125a02c57ef64ddf39a0))
9
+
1
10
  # [1.2.0](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/compare/v1.1.1...v1.2.0) (2025-09-12)
2
11
 
3
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-int/bruno-shared-scripts",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "exports": "./es/index.js",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -13,7 +13,6 @@
13
13
  "esbuild": "^0.25.2",
14
14
  "@semantic-release/changelog": "^6.0.3",
15
15
  "@semantic-release/git": "^10.0.1",
16
- "@semantic-release/gitlab": "^12.0.6",
17
- "@semantic-release/npm": "^11.0.0"
16
+ "@semantic-release/gitlab": "^13.2.9"
18
17
  }
19
18
  }