dlr-eoc / ukis-frontend-libraries

A collection of angular ui-components, services, interfaces... to help you create geospatial mapping applications for the web.
Apache License 2.0
17 stars 4 forks source link

Update npm version in CI to publish packages in workflows #129

Closed boeckMt closed 2 years ago

boeckMt commented 2 years ago

Describe the bug

The Issue ...You need to authorize this machine using 'npm adduser' which was caused in the github workflow on npm publish should be resolved now. Try to update the temporary fix from https://github.com/dlr-eoc/ukis-frontend-libraries/pull/90#issuecomment-879855928 with a current npm version > v8.5.1.

https://github.com/dlr-eoc/ukis-frontend-libraries/blob/99d2f8e0138c0120887c827c8a7983a1de0c63a1/.github/workflows/package-main-release.yml#L187

https://github.com/dlr-eoc/ukis-frontend-libraries/blob/99d2f8e0138c0120887c827c8a7983a1de0c63a1/.github/workflows/package-pre-release.yml#L69

boeckMt commented 2 years ago

See issue https://github.com/npm/cli/issues/3573

now using node 16 and npm >8.19

...
 - uses: actions/setup-node@v3
        with:
          node-version: 16
          registry-url: https://npm.pkg.github.com/
          scope: "@dlr-eoc"
      - run: npm ci
      - run: npm i -g npm@8.19.2
      - run: |
          ...
              npm publish "$dir" --access public
          ...
boeckMt commented 2 years ago

works in https://github.com/dlr-eoc/ukis-frontend-libraries/actions/runs/3242374122/jobs/5315765162