Skip to content

Commit 41fdee6

Browse files
committed
switched from npm.coremedia.io to nexus repository
1 parent 6b029fd commit 41fdee6

8 files changed

Lines changed: 33 additions & 32 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ on:
4949
required: false
5050
default: false
5151
secrets:
52-
CM_NPM_USER:
52+
PLUGINS_NEXUS_USER:
5353
required: true
54-
CM_NPM_PASSWORD:
54+
PLUGINS_NEXUS_PASSWORD:
5555
required: true
5656

5757
run-name: |
@@ -90,7 +90,7 @@ jobs:
9090
- id: authorize
9191
name: "NPM Authorization"
9292
run: |
93-
result=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.CM_NPM_USER }}", "password": "${{ secrets.CM_NPM_PASSWORD }}"}' "${{ env.npmUrl }}/-/user/org.couchdb.user:${{ secrets.CM_NPM_USER }}" | jq --raw-output .token)
93+
result=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.PLUGINS_NEXUS_USER }}", "password": "${{ secrets.PLUGINS_NEXUS_PASSWORD }}"}' "${{ env.npmUrl }}/-/user/org.couchdb.user:${{ secrets.PLUGINS_NEXUS_USER }}" | jq --raw-output .token)
9494
# Ensure, the token is not exposed in output.
9595
echo "::add-mask::${result}"
9696
echo "NODE_AUTH_TOKEN=${result}" >> $GITHUB_ENV

.github/workflows/env.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
description: "URL of NPM repository to use (without trailing '/'"
1111
value: ${{ jobs.init.outputs.npm-url }}
1212

13-
permissions: {}
13+
permissions: { }
1414

1515
jobs:
1616
init:
@@ -24,7 +24,7 @@ jobs:
2424
- id: npm
2525
name: "NPM Repository"
2626
run: |
27-
host="npm.coremedia.io"
27+
host="repository.coremedia.com/repository/coremedia-npm"
2828
url="https://${host}"
2929
echo "host=${host}" >> $GITHUB_OUTPUT
3030
echo "url=${url}" >> $GITHUB_OUTPUT

.github/workflows/list.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
required: false
1717
type: number
1818

19-
permissions: {}
19+
permissions: { }
2020

2121
jobs:
2222
env:
@@ -35,7 +35,7 @@ jobs:
3535
- id: authorize
3636
name: "NPM Authorization"
3737
run: |
38-
result=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.CM_NPM_USER }}", "password": "${{ secrets.CM_NPM_PASSWORD }}"}' "${{ env.NPM_URL }}/-/user/org.couchdb.user:${{ secrets.CM_NPM_USER }}" | jq -r .token)
38+
result=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.PLUGINS_NEXUS_USER }}", "password": "${{ secrets.PLUGINS_NEXUS_PASSWORD }}"}' "${{ env.NPM_URL }}/-/user/org.couchdb.user:${{ secrets.PLUGINS_NEXUS_USER }}" | jq -r .token)
3939
# Ensure, the token is not exposed in output.
4040
echo "::add-mask::${result}"
4141
echo "NPM_AUTH_TOKEN=${result}" >> $GITHUB_ENV

.github/workflows/pre-release-gc.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ on:
2828
default: true
2929

3030
env:
31-
NPM_REPOSITORY: npm.coremedia.io
32-
NPM_REPOSITORY_URL: https://npm.coremedia.io
31+
NPM_REPOSITORY: repository.coremedia.com/repository/coremedia-npm
32+
NPM_REPOSITORY_URL: https://repository.coremedia.com/repository/coremedia-npm
3333
NODE_VERSION: 20
3434

3535
jobs:
@@ -49,8 +49,8 @@ jobs:
4949
--header "Accept: application/json" \
5050
--header "Content-Type:application/json" \
5151
--request PUT \
52-
--data '{"name": "${{ secrets.CM_NPM_USER }}", "password": "${{ secrets.CM_NPM_PASSWORD }}"}' \
53-
"${{ env.NPM_REPOSITORY_URL }}/-/user/org.couchdb.user:${{ secrets.CM_NPM_USER }}" | \
52+
--data '{"name": "${{ secrets.PLUGINS_NEXUS_USER }}", "password": "${{ secrets.PLUGINS_NEXUS_PASSWORD }}"}' \
53+
"${{ env.NPM_REPOSITORY_URL }}/-/user/org.couchdb.user:${{ secrets.PLUGINS_NEXUS_USER }}" | \
5454
jq -r .token)
5555
echo "::add-mask::$NPM_AUTH_TOKEN"
5656
echo "NPM_CONFIG_//${{ env.NPM_REPOSITORY }}/:_authToken=${NPM_AUTH_TOKEN}" >> $GITHUB_ENV

.github/workflows/pre-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ env:
1717
# https://github.com/actions/runner-images/issues/70
1818
NODE_OPTIONS: "--max_old_space_size=4096"
1919
PNPM_VERSION: ^10.9
20-
NPM_CONFIG_@coremedia:registry: 'https://npm.coremedia.io'
21-
NPM_CONFIG_@coremedia-internal:registry: 'https://npm.coremedia.io'
20+
NPM_CONFIG_@coremedia:registry: 'https://repository.coremedia.com/repository/coremedia-npm'
21+
NPM_CONFIG_@coremedia-internal:registry: 'https://repository.coremedia.com/repository/coremedia-npm'
2222

2323
jobs:
2424
build:
@@ -43,10 +43,10 @@ jobs:
4343
node-version: ${{ env.NODE_VERSION }}
4444
- name: Configure NPM
4545
run: |
46-
NPM_AUTH_TOKEN=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.CM_NPM_USER }}", "password": "${{ secrets.CM_NPM_PASSWORD }}"}' https://npm.coremedia.io/-/user/org.couchdb.user:${{ secrets.CM_NPM_USER }} | jq -r .token)
46+
NPM_AUTH_TOKEN=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.PLUGINS_NEXUS_USER }}", "password": "${{ secrets.PLUGINS_NEXUS_PASSWORD }}"}' https://repository.coremedia.com/repository/coremedia-npm/-/user/org.couchdb.user:${{ secrets.PLUGINS_NEXUS_USER }} | jq -r .token)
4747
echo "::add-mask::$NPM_AUTH_TOKEN"
4848
echo "NPM_AUTH_TOKEN=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
49-
echo "NPM_CONFIG_//npm.coremedia.io/:_authToken=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
49+
echo "NPM_CONFIG_//repository.coremedia.com/repository/coremedia-npm/:_authToken=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
5050
5151
npm install -g pnpm@${{ env.PNPM_VERSION }}
5252
- name: Setup Git
@@ -91,5 +91,5 @@ jobs:
9191
if: github.event_name == 'workflow_dispatch'
9292
run: |
9393
pnpm install --production
94-
echo '//npm.coremedia.io/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc
95-
pnpm publishall --registry=https://npm.coremedia.io --no-git-checks --tag pullrequest
94+
echo '//repository.coremedia.com/repository/coremedia-npm/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc
95+
pnpm publishall --registry=https://repository.coremedia.com/repository/coremedia-npm --no-git-checks --tag pullrequest

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ env:
2626
# https://github.com/actions/runner-images/issues/70
2727
NODE_OPTIONS: "--max_old_space_size=4096"
2828
PNPM_VERSION: ^10.9
29-
NPM_CONFIG_@coremedia:registry: 'https://npm.coremedia.io'
30-
NPM_CONFIG_@coremedia-internal:registry: 'https://npm.coremedia.io'
29+
NPM_CONFIG_@coremedia:registry: 'https://repository.coremedia.com/repository/coremedia-npm'
30+
NPM_CONFIG_@coremedia-internal:registry: 'https://repository.coremedia.com/repository/coremedia-npm'
3131

3232
jobs:
3333
build:
@@ -62,10 +62,10 @@ jobs:
6262
node-version: ${{ env.NODE_VERSION }}
6363
- name: Configure NPM
6464
run: |
65-
NPM_AUTH_TOKEN=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.CM_NPM_USER }}", "password": "${{ secrets.CM_NPM_PASSWORD }}"}' https://npm.coremedia.io/-/user/org.couchdb.user:${{ secrets.CM_NPM_USER }} | jq -r .token)
65+
NPM_AUTH_TOKEN=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.PLUGINS_NEXUS_USER }}", "password": "${{ secrets.PLUGINS_NEXUS_PASSWORD }}"}' https://repository.coremedia.com/repository/coremedia-npm/-/user/org.couchdb.user:${{ secrets.PLUGINS_NEXUS_USER }} | jq -r .token)
6666
echo "::add-mask::$NPM_AUTH_TOKEN"
6767
echo "NPM_AUTH_TOKEN=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
68-
echo "NPM_CONFIG_//npm.coremedia.io/:_authToken=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
68+
echo "NPM_CONFIG_//repository.coremedia.com/repository/coremedia-npm/:_authToken=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
6969
7070
npm install -g pnpm@${{ env.PNPM_VERSION }}
7171
- name: Setup Git
@@ -144,15 +144,15 @@ jobs:
144144
- name: Publish RC
145145
if: github.event_name == 'push'
146146
run: |
147-
echo '//npm.coremedia.io/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc
148-
pnpm publishall --registry=https://npm.coremedia.io --no-git-checks --tag next
147+
echo '//repository.coremedia.com/repository/coremedia-npm/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc
148+
pnpm publishall --registry=https://repository.coremedia.com/repository/coremedia-npm --no-git-checks --tag next
149149
git reset --hard
150150
# Publishes a release with tag "latest"
151151
- name: Publish Release
152152
if: github.event_name == 'workflow_dispatch'
153153
run: |
154-
echo '//npm.coremedia.io/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc
155-
pnpm publishall --registry=https://npm.coremedia.io --no-git-checks
154+
echo '//repository.coremedia.com/repository/coremedia-npm/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc
155+
pnpm publishall --registry=https://repository.coremedia.com/repository/coremedia-npm --no-git-checks
156156
git reset --hard
157157
- name: Push commits
158158
run: git push

.github/workflows/unpublish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ jobs:
99
build:
1010
name: Unpublish Version
1111
env:
12-
NPM_CONFIG_@coremedia:registry: 'https://npm.coremedia.io'
12+
NPM_CONFIG_@coremedia:registry: 'https://repository.coremedia.com/repository/coremedia-npm'
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3
1717
- name: Resolve NPM_AUTH_TOKEN
1818
run: |
19-
NPM_AUTH_TOKEN=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.CM_NPM_USER }}", "password": "${{ secrets.CM_NPM_PASSWORD }}"}' https://npm.coremedia.io/-/user/org.couchdb.user:${{ secrets.CM_NPM_USER }} | jq -r .token)
19+
NPM_AUTH_TOKEN=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.PLUGINS_NEXUS_USER }}", "password": "${{ secrets.PLUGINS_NEXUS_PASSWORD }}"}' https://repository.coremedia.com/repository/coremedia-npm/-/user/org.couchdb.user:${{ secrets.PLUGINS_NEXUS_USER }} | jq -r .token)
2020
echo "::add-mask::$NPM_AUTH_TOKEN"
21-
echo "NPM_CONFIG_//npm.coremedia.io/:_authToken=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
21+
echo "NPM_CONFIG_//repository.coremedia.com/repository/coremedia-npm/:_authToken=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
2222
echo "NPM_AUTH_TOKEN=$NPM_AUTH_TOKEN" >> $GITHUB_ENV
23-
echo '//npm.coremedia.io/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc
23+
echo '//repository.coremedia.com/repository/coremedia-npm/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc
2424
- name: Unpublish release
2525
run: |
2626
version=${{ github.event.inputs.version }}
@@ -29,10 +29,10 @@ jobs:
2929
exit 0
3030
fi
3131
32-
cmcke5packages=$(npm search "@coremedia/ckeditor" --json --registry https://npm.coremedia.io)
32+
cmcke5packages=$(npm search "@coremedia/ckeditor" --json --registry https://repository.coremedia.com/repository/coremedia-npm)
3333
echo "$version"
3434
echo "$cmcke5packages"
3535
for i in $(jq -r ".[].name" <(echo "$cmcke5packages"))
3636
do
37-
npm unpublish $i@$version --registry https://npm.coremedia.io
37+
npm unpublish $i@$version --registry https://repository.coremedia.com/repository/coremedia-npm
3838
done

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ $ pnpm -r build
4040
$ pnpm start
4141
```
4242

43-
Note, that `pnpm install` requires access to `npm.coremedia.io`.
43+
Note, that `pnpm install` requires access to
44+
`repository.coremedia.com/repository/coremedia-npm`.
4445

4546
Since Version 44 a license key is necessary to use the CkEditor.
4647
Create a file named `.env` in the root of this workspace and add a line

0 commit comments

Comments
 (0)