|
26 | 26 | # https://github.com/actions/runner-images/issues/70 |
27 | 27 | NODE_OPTIONS: "--max_old_space_size=4096" |
28 | 28 | PNPM_VERSION: ^9.4 |
29 | | - NPM_CONFIG_@coremedia:registry: 'https://npm.coremedia.io' |
| 29 | + NPM_CONFIG_@coremedia:registry: 'https://repository.coremedia.com/nexus/repository/coremedia-npm' |
| 30 | + NPM_CONFIG_@coremedia-internal:registry: 'https://repository.coremedia.com/nexus/repository/coremedia-npm' |
30 | 31 |
|
31 | 32 | jobs: |
32 | 33 | build: |
@@ -60,10 +61,10 @@ jobs: |
60 | 61 | node-version: ${{ env.NODE_VERSION }} |
61 | 62 | - name: Configure NPM |
62 | 63 | run: | |
63 | | - 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) |
| 64 | + 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/nexus/repository/coremedia-npm/-/user/org.couchdb.user:${{ secrets.PLUGINS_NEXUS_USER }} | jq -r .token) |
64 | 65 | echo "::add-mask::$NPM_AUTH_TOKEN" |
65 | 66 | echo "NPM_AUTH_TOKEN=$NPM_AUTH_TOKEN" >> $GITHUB_ENV |
66 | | - echo "NPM_CONFIG_//npm.coremedia.io/:_authToken=$NPM_AUTH_TOKEN" >> $GITHUB_ENV |
| 67 | + echo "NPM_CONFIG_//repository.coremedia.com/nexus/repository/coremedia-npm/:_authToken=$NPM_AUTH_TOKEN" >> $GITHUB_ENV |
67 | 68 |
|
68 | 69 | npm install -g pnpm@${{ env.PNPM_VERSION }} |
69 | 70 | - name: Setup Git |
@@ -144,15 +145,15 @@ jobs: |
144 | 145 | - name: Publish RC |
145 | 146 | if: github.event_name == 'push' |
146 | 147 | run: | |
147 | | - echo '//npm.coremedia.io/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc |
148 | | - pnpm publishall --registry=https://npm.coremedia.io --no-git-checks --tag next |
| 148 | + echo '//repository.coremedia.com/nexus/repository/coremedia-npm/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc |
| 149 | + pnpm publishall --registry=https://repository.coremedia.com/nexus/repository/coremedia-npm --no-git-checks --tag next |
149 | 150 | git reset --hard |
150 | 151 | # Publishes a release with tag "latest" |
151 | 152 | - name: Publish Release |
152 | 153 | if: github.event_name == 'workflow_dispatch' |
153 | 154 | run: | |
154 | | - echo '//npm.coremedia.io/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc |
155 | | - pnpm publishall --registry=https://npm.coremedia.io --no-git-checks |
| 155 | + echo '//repository.coremedia.com/nexus/repository/coremedia-npm/:_authToken=${NPM_AUTH_TOKEN}' > .npmrc |
| 156 | + pnpm publishall --registry=https://repository.coremedia.com/nexus/repository/coremedia-npm --no-git-checks |
156 | 157 | git reset --hard |
157 | 158 | - name: Push commits |
158 | 159 | run: git push |
|
0 commit comments