@k-int/bruno-shared-scripts 1.1.1 → 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 ADDED
@@ -0,0 +1,51 @@
1
+ # Base templates for setting up the module in the various stages
2
+ .npm_config_setup:
3
+ before_script:
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
9
+ - npm config set -- //nexus.libsdev.k-int.com/repository/libsdev-npm-hosted/:_authToken $KI_NEXUS_NPM_TOKEN
10
+ - npm config set -- //nexus.libsdev.k-int.com/repository/libsdev-npm-snapshots-hosted/:_authToken $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
+ cache:
23
+ key: ${CI_COMMIT_REF_SLUG}
24
+ paths:
25
+ - .npm/
26
+ - ./module-descriptor.json
27
+ tags:
28
+ - docker
29
+ #- docker-18
30
+ - ki-onprem
31
+
32
+ stages:
33
+ - release
34
+
35
+ publish:
36
+ stage: release
37
+ extends: .dependencies_install
38
+ only:
39
+ - main # Only run on the 'release' branch or version n.x branches
40
+ - /^[0-9]+.x/
41
+ id_tokens:
42
+ NPM_ID_TOKEN:
43
+ aud: "npm:registry.npmjs.org"
44
+ script:
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"
@@ -0,0 +1,17 @@
1
+ {
2
+ "branches": [{"name": "+([0-9]).x", "channel": "version${name.replace('.x', '')}"}, "main"],
3
+ "plugins": [
4
+ "@semantic-release/commit-analyzer",
5
+ "@semantic-release/release-notes-generator",
6
+ "@semantic-release/changelog",
7
+ "@semantic-release/gitlab",
8
+ "@semantic-release/npm",
9
+ [
10
+ "@semantic-release/git",
11
+ {
12
+ "assets": ["package.json", "CHANGELOG.md"],
13
+ "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
14
+ }
15
+ ]
16
+ ]
17
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,29 @@
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
+
10
+ # [1.2.0](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/compare/v1.1.1...v1.2.0) (2025-09-12)
11
+
12
+
13
+ ### Features
14
+
15
+ * Set up auto-release for bruno-shared-scripts ([6dbd472](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/commit/6dbd472424049927b871297f859d67a5c2eb407b))
16
+
17
+ # 1.0.0 (2025-09-12)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * Whoops... non-auth FOLIO requests failed ([734aac5](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/commit/734aac59490e8dc02ded6c949859a9ab7e211866))
23
+
24
+
25
+ ### Features
26
+
27
+ * folioAxios ([e92c60e](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/commit/e92c60e8b05e7cc0b81577cae5bc71c4bfbeddb8))
28
+ * Set up auto-release for bruno-shared-scripts ([6dbd472](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/commit/6dbd472424049927b871297f859d67a5c2eb407b))
29
+ * working workspace ([f3dc88c](https://gitlab.com/knowledge-integration/bruno/bruno-shared-scripts/commit/f3dc88c3d870ce8621e92ab713fd35245ede735e))
package/README.md ADDED
File without changes
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "@k-int/bruno-shared-scripts",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "exports": "./es/index.js",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "build": "esbuild ./src/index.js --bundle --format=cjs --outdir=es --external:axios"
9
+ "build": "esbuild ./src/index.js --bundle --format=cjs --outdir=es --external:axios",
10
+ "semantic-release": "semantic-release"
10
11
  },
11
12
  "devDependencies": {
12
- "esbuild": "^0.25.2"
13
+ "esbuild": "^0.25.2",
14
+ "@semantic-release/changelog": "^6.0.3",
15
+ "@semantic-release/git": "^10.0.1",
16
+ "@semantic-release/gitlab": "^13.2.9"
13
17
  }
14
18
  }