diff --git a/.github/workflows/publish-backstage-plugin-package.yaml b/.github/workflows/publish-backstage-plugin-package.yaml index 5cbd4a0..a66c653 100644 --- a/.github/workflows/publish-backstage-plugin-package.yaml +++ b/.github/workflows/publish-backstage-plugin-package.yaml @@ -24,8 +24,9 @@ jobs: node-version: 18.x cache: "yarn" cache-dependency-path: backstage-plugin/yarn.lock - registry-url: https://npm.pkg.github.com/ + registry-url: https://registry.npmjs.org always-auth: true + scope: "@devoteam-nl" - name: Install dependencies run: yarn install --frozen-lockfile @@ -53,18 +54,16 @@ jobs: working-directory: backstage-plugin/plugins/open-dora run: | # Replace the @devoteam-nl with @devoteamnl in package.json - sed -i 's/"@devoteam-nl\//"@devoteamnl\//g' package.json yarn version --new-version ${{ steps.gitversion.outputs.fullSemVer }} --no-git-tag-version yarn publish --non-interactive --tag pr env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_APR_2024 }} - name: Publish to GHCR if: github.event_name == 'release' working-directory: backstage-plugin/plugins/open-dora run: | # Replace the @devoteam-nl with @devoteamnl in package.json - sed -i 's/"@devoteam-nl\//"@devoteamnl\//g' package.json yarn publish --non-interactive env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_APR_2024 }} diff --git a/backstage-plugin/plugins/open-dora/src/components/DashboardComponent/BenchmarkGridItem.test.tsx b/backstage-plugin/plugins/open-dora/src/components/DashboardComponent/BenchmarkGridItem.test.tsx index 8d0d8ff..6efb245 100644 --- a/backstage-plugin/plugins/open-dora/src/components/DashboardComponent/BenchmarkGridItem.test.tsx +++ b/backstage-plugin/plugins/open-dora/src/components/DashboardComponent/BenchmarkGridItem.test.tsx @@ -38,7 +38,7 @@ describe('BenchmarkGridItem', () => { expect(queryByText('3 deployment days per week(elite)')).not.toBeNull(); }); - it('should show the error returned from the service', async () => { + it('should show the error returned from the servicess', async () => { server.use( rest.get(benchmarkUrl, (_, res, ctx) => { return res(ctx.status(401));