Skip to content

Commit 3cc3d3b

Browse files
committed
chore: Update gitlab-ci build process
1 parent 55e4518 commit 3cc3d3b

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test:
1515

1616
release-publish:
1717
image:
18-
name: git.corellium.co:5050/corellium/ci/docker/nodejs:18
18+
name: git.corellium.co:5050/corellium/ci/docker/nodejs:22
1919
pull_policy: [always, if-not-present]
2020
stage: publish
2121
before_script:
@@ -42,6 +42,7 @@ release-publish:
4242
- git push git@github.com:corellium/corellium-api.git HEAD:master
4343
- git push git@github.com:corellium/corellium-api.git "refs/tags/${CI_COMMIT_TAG}"
4444
- jq . package.json
45+
- nvm use 18
4546
- npm publish
4647
rules:
4748
- if: '$CI_COMMIT_TAG =~ /^v/'
@@ -67,6 +68,7 @@ local-publish:
6768
- jq ".version = \"${PKG_VERSION}\"" package.json > temp.json
6869
- mv temp.json package.json
6970
- jq . package.json
71+
- nvm use 18
7072
- npm publish
7173
only:
7274
- tags

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ npm install @corellium/corellium-api
1414
### Publishing
1515
To publish the corellium-api npm package to the GitLab registry, create a tag with the format
1616
```
17-
v#.#.#
17+
git tag -a v#.#.# -m "v#.#.#"
18+
git push origin v#.#.#
1819
```
1920

2021
To publish to the official Corellium npm registry, create a tag with the format
2122
```
22-
release/v#.#.#
23+
git tag -a release/v#.#.# -m "v#.#.#"
24+
git push origin release/v#.#.#
25+
2326
```
2427
This will publish the package in the GitLab registry, the npm registry, as well as create a release in the mirrored GitHub repository
2528

0 commit comments

Comments
 (0)