Skip to content

Commit

Permalink
fix: yarn registry
Browse files Browse the repository at this point in the history
Signed-off-by: Ourchitecture.io <[email protected]>
  • Loading branch information
ourchitectureio committed Nov 3, 2023
1 parent 9249533 commit 74b5a5b
Show file tree
Hide file tree
Showing 3 changed files with 2,874 additions and 2,863 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/repo-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
shell: bash
run: echo "NPM_VERSION=$(cat ./.npmrc)" >> $GITHUB_OUTPUT

- name: Get yarn version
id: yarn-version
shell: bash
working-directory: ./src/backstage/ourstage/
run: cat ./package.json | jq -r .packageManager | sed 's\yarn@\\g' | xargs -I {} -n 1 echo 'YARN_VERSION={}' >> $GITHUB_OUTPUT

- name: Get pnpm version
id: pnpm-version
shell: bash
Expand All @@ -46,9 +52,12 @@ jobs:
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Install npm
id: npm-install
run: npm install --location=global npm@${{ steps.npm-version.outputs.NPM_VERSION }}
- name: Install npm and yarn
id: npm-and-yarn-install
run: |
npm install --location=global \
npm@${{ steps.npm-version.outputs.NPM_VERSION }} \
yarn@${{ steps.yarn-version.outputs.YARN_VERSION }}
- name: Setup Wireit cache
id: cache-wireit
Expand Down
4 changes: 3 additions & 1 deletion src/backstage/ourstage/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ upgrade: init
clean:
@yarn clean
@rm --recursive --force \
./coverage/ \
./dist-types/ \
./backend/dist/
./packages/app/dist/ \
./packages/backend/dist/

.PHONY: reset
reset: clean
Expand Down
Loading

0 comments on commit 74b5a5b

Please sign in to comment.