Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

token change #172

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/publish-backstage-plugin-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_APR_2024 }}
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
Loading