diff --git a/.circleci/config.yml b/.circleci/config.yml index a5a7a2f29..4aeb99587 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -214,7 +214,7 @@ jobs: command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - run: name: publish - command: cd /home/circleci/welcome-ui/lib && npm publish + command: cd /home/circleci/welcome-ui/lib && npm publish --registry https://registry.npmjs.org alpha_release: executor: nodejs @@ -227,7 +227,7 @@ jobs: command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - run: name: publish - command: cd /home/circleci/welcome-ui/lib && npm publish --tag beta + command: cd /home/circleci/welcome-ui/lib && npm publish --tag beta --registry https://registry.npmjs.org dev_release: executor: nodejs diff --git a/.dev-releases/publish.mjs b/.dev-releases/publish.mjs index cea3dd4af..00fc5e521 100644 --- a/.dev-releases/publish.mjs +++ b/.dev-releases/publish.mjs @@ -20,6 +20,8 @@ writeFileSync(packageJSONPath, JSON.stringify(packageJSON, null, 2)) console.info('Done !') console.info('Publishing ...') -execSync('cd /home/circleci/welcome-ui/lib && npm publish --tag dev') +execSync( + 'cd /home/circleci/welcome-ui/lib && npm publish --tag dev --registry https://registry.npmjs.org' +) console.info('Done !') diff --git a/.npmrc b/.npmrc index 7f594a201..7c1996d0c 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,2 @@ -package-lock=false registry=https://registry.yarnpkg.com +package-lock=false diff --git a/lib/.release-it.json b/lib/.release-it.json index da292d82f..60d262cf0 100644 --- a/lib/.release-it.json +++ b/lib/.release-it.json @@ -1,14 +1,12 @@ { + "npm": { + "publish": false, + "skipChecks": true + }, "git": { "commitMessage": "chore: release v${version}", "tagName": "v${version}" }, - "npm": { - "skipChecks": true, - "publishConfig": { - "registry": "https://registry.yarnpkg.com" - } - }, "github": { "release": true } diff --git a/lib/package.json b/lib/package.json index c38f1ab47..c2194419f 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "welcome-ui", - "version": "7.0.0-alpha.4", + "version": "7.0.0-alpha.5", "description": "Customizable design system with react • styled-components • styled-system and ariakit.", "files": [ "dist" @@ -86,8 +86,8 @@ "@types/lodash.range": "^3.2.9", "@types/node": "22.9.0", "@types/react": "18.0.25", - "@types/react-dom": "18.0.11", "@types/react-datepicker": "^4.15.0", + "@types/react-dom": "18.0.11", "@xstyled/styled-components": "^3.7.3", "babel-jest": "^29.7.0", "babel-plugin-annotate-pure-calls": "^0.4.0", diff --git a/package.json b/package.json index acad11b91..bd06608a7 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "migrate": "node ./scripts/update-imports.js", "postinstall": "husky install", "release:dev": "node .dev-releases/version.mjs", - "release:alpha": "cd lib && yarn release-it --preRelease=alpha --no-npm.publish", - "release": "cd lib && yarn release-it --no-npm.publish", + "release:alpha": "cd lib && yarn release-it --preRelease=alpha", + "release": "cd lib && yarn release-it", "start": "cd website && yarn dev -p 3020", "export-properties": "node ./scripts/generate-types-doc.js", "test": "cd lib && yarn test"