Skip to content

Commit b68792d

Browse files
committed
Build TriVir version
1 parent 9ee5d66 commit b68792d

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

.github/workflows/pipeline.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: 'Frodo CLI Release Pipeline'
33
on:
44
pull_request:
55
branches:
6-
- 'main'
6+
- trivir
77
paths-ignore:
88
- '**/CODE_OF_CONDUCT.md'
99
- '**/README.md'
1010
- 'docs/**'
1111
push:
1212
branches:
13-
- 'main'
13+
- trivir
1414
paths-ignore:
1515
- '**/CODE_OF_CONDUCT.md'
1616
- '**/README.md'
@@ -41,20 +41,24 @@ jobs:
4141
- name: Update package-log.json before version bump
4242
run: npm i --package-lock-only
4343

44+
- name: TriVir changes
45+
run: npm run trivir-frodo-lib
46+
4447
- name: Install dependencies
4548
run: npm ci
4649

4750
- name: 'Prepare Version Bump'
4851
id: version-bump
4952
uses: 'phips28/gh-action-bump-version@master'
5053
with:
54+
version-type: 'prerelease'
5155
major-wording: 'MAJOR RELEASE'
5256
minor-wording: 'MINOR RELEASE'
5357
patch-wording: 'PATCH RELEASE'
5458
rc-wording: ''
5559
tag-prefix: 'v'
5660
default: prerelease
57-
preid: ''
61+
preid: 'trivir'
5862
bump-policy: 'ignore'
5963
skip-commit: 'true'
6064
skip-tag: 'true'
@@ -321,10 +325,10 @@ jobs:
321325
run: |
322326
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" >> ~/.npmrc
323327
npm whoami
324-
npm dist-tag add @rockcarver/frodo-cli@${{ needs.build.outputs.newVersion }} next
328+
npm dist-tag add @trivir/frodo-cli@${{ needs.build.outputs.newVersion }} next
325329
326330
homebrew-formula-update:
327-
if: github.event_name != 'pull_request'
331+
if: false
328332
name: Bump Homebrew formula
329333
needs: [release, build, npm-release]
330334
runs-on: ubuntu-latest

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@rockcarver/frodo-cli",
2+
"name": "@trivir/frodo-cli",
33
"version": "3.0.6",
44
"type": "module",
55
"description": "A command line interface to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
@@ -32,6 +32,8 @@
3232
},
3333
"main": "dist/launch.cjs",
3434
"scripts": {
35+
"rockcarver-frodo-lib": "find src -type f -name \"*.ts\" -exec sed -i \"s#@trivir/frodo-lib#@rockcarver/frodo-lib#g\" {} +",
36+
"trivir-frodo-lib": "npm uninstall @rockcarver/frodo-lib && npm install @trivir/frodo-lib@next && find src -type f -name \"*.ts\" -exec sed -i \"s#@rockcarver/frodo-lib#@trivir/frodo-lib#g\" {} +",
3537
"test": "npm run test:only",
3638
"test:only": "NODE_OPTIONS='--no-warnings --experimental-vm-modules' npx jest --silent",
3739
"test:serial": "NODE_OPTIONS='--no-warnings --experimental-vm-modules' npx jest --silent --runInBand",
@@ -104,8 +106,8 @@
104106
"package.json",
105107
"cjs/ops/templates/*.json",
106108
"cjs/ops/templates/**/*.json",
107-
"node_modules/@rockcarver/frodo-lib/cjs/ops/templates/*.json",
108-
"node_modules/@rockcarver/frodo-lib/cjs/ops/templates/**/*.json"
109+
"node_modules/@trivir/frodo-lib/cjs/ops/templates/*.json",
110+
"node_modules/@trivir/frodo-lib/cjs/ops/templates/**/*.json"
109111
],
110112
"_scripts": [
111113
"cjs/cli/**/*.js",

0 commit comments

Comments
 (0)