Skip to content

Commit

Permalink
fix(ci): use npmrc to provide desired registry
Browse files Browse the repository at this point in the history
Co-Authored-By: Florian Wendelborn <[email protected]>
  • Loading branch information
Isokaeder and FlorianWendelborn committed May 14, 2024
1 parent 7acaadf commit ecc7eba
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
# make extra sure this publish wouldn’t break anything
- run: yarn run build check test

- run: cp internals/scripts/source/npmrc-template /home/runner/work/_temp/.npmrc
- run: cp internals/scripts/source/npmrc-template .npmrc
- run: npm config ls -l

- name: publish
run: bun internals/scripts/source/publish.ts
env:
Expand Down
3 changes: 3 additions & 0 deletions internals/scripts/source/npmrc-template
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@
"useTabs": true
},
"private": true,
"repository": "[email protected]:3YOURMIND/kotti",
"repository": {
"type": "git",
"url": "git+https://github.com/3YOURMIND/kotti.git"
},
"scripts": {
"build": "turbo run build",
"check": "turbo run check",
Expand Down
7 changes: 5 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,18 @@
"peerDependencies": {
"eslint": ">= 9"
},
"repository": "git+https://github.com/3YOURMIND/kotti.git",
"repository": {
"type": "git",
"url": "git+https://github.com/3YOURMIND/kotti.git"
},
"scripts": {
"build": "./scripts/build.sh",
"check:eslint": "eslint --max-warnings=0 .",
"check:prettier": "yarn --cwd ../.. run prettier --check --ignore-path=.gitignore ./packages/vue-use-tippy",
"check:publint": "publint",
"fix:eslint": "yarn run check:eslint --fix",
"fix:prettier": "yarn run check:prettier --write",
"publish-package": "npm publish --access public --provenance"
"publish-package": "yarn publish --no-git-tag-version --verbose --non-interactive --access public"
},
"type": "module",
"types": "./dist/mjs/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/kotti-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"fix:eslint": "yarn run check:eslint --fix",
"fix:prettier": "yarn run check:prettier --write",
"fix:stylelint": "yarn run check:stylelint --fix",
"publish-package": "npm publish --access public --provenance",
"publish-package": "yarn publish --no-git-tag-version --verbose --non-interactive --access public",
"test": "vitest --run --typecheck",
"watch": "vite build --watch"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-use-tippy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"check:publint": "publint",
"fix:eslint": "yarn run check:eslint --fix",
"fix:prettier": "yarn run check:prettier --write",
"publish-package": "npm publish --access public --provenance"
"publish-package": "yarn publish --no-git-tag-version --verbose --non-interactive --access public"
},
"type": "module",
"types": "./dist/mjs/index.d.ts",
Expand Down
7 changes: 5 additions & 2 deletions packages/yoco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"main": "./dist/cjs/index.cjs",
"module": "./dist/mjs/index.js",
"name": "@3yourmind/yoco",
"repository": "git+https://github.com/3YOURMIND/kotti.git",
"repository": {
"type": "git",
"url": "git+https://github.com/3YOURMIND/kotti.git"
},
"scripts": {
"build": "./scripts/build.sh",
"check:eslint": "eslint --max-warnings=0 .",
Expand All @@ -60,7 +63,7 @@
"check:stylelint": "stylelint style.css",
"fix:eslint": "yarn run check:eslint --fix",
"fix:prettier": "yarn run check:prettier --write",
"publish-package": "npm publish --access public --provenance"
"publish-package": "yarn publish --no-git-tag-version --verbose --non-interactive --access public"
},
"style": "./style.css",
"type": "module",
Expand Down

0 comments on commit ecc7eba

Please sign in to comment.