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

chore: replacing npm with github packages [TOL-1700] #524

Merged
merged 13 commits into from
Jan 23, 2024
Merged
10 changes: 6 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ cache-key: &cache-key
commands:
use_npm_token:
steps:
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
- run: |
echo "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGES_READ_TOKEN}" > ~/.npmrc
chrishelgert marked this conversation as resolved.
Show resolved Hide resolved
echo "@contentful:registry=https://npm.pkg.github.com" >> ~/.npmrc

yarn_install:
steps:
Expand All @@ -37,7 +39,7 @@ jobs:
steps:
- checkout
- vault/get-secrets:
template-preset: npm-read
template-preset: packages-read
- yarn_install
- run: yarn build
- run: yarn lint
Expand All @@ -52,7 +54,7 @@ jobs:
steps:
- checkout
- vault/get-secrets:
template-preset: semantic-release-ecosystem
template-preset: semantic-release
chrishelgert marked this conversation as resolved.
Show resolved Hide resolved
- run: git config --global user.email $GIT_COMMITTER_EMAIL
- run: git config --global user.name $GIT_COMMITTER_NAME
- run: git remote set-url origin "https://$GIT_AUTHOR_NAME:[email protected]/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
Expand All @@ -67,7 +69,7 @@ jobs:
steps:
- checkout
- vault/get-secrets:
template-preset: npm-read
template-preset: packages-read
- vault/get-secrets:
template-preset: github-comment
- use_npm_token
Expand Down
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ registries:
type: npm-registry
url: https://registry.npmjs.org
token: '${{secrets.NPM_REGISTRY_REGISTRY_NPMJS_ORG_TOKEN}}'
npm-github:
type: npm-registry
url: https://npm.pkg.github.com
token: ${{secrets.NPM_REGISTRY_REGISTRY_GH_ORG_TOKEN}}

updates:
- package-ecosystem: npm
Expand All @@ -22,5 +26,6 @@ updates:
prefix: chore
registries:
- npm-registry-registry-npmjs-org
- npm-github
reviewers:
- 'contentful/team-tolkien'
3 changes: 2 additions & 1 deletion packages/contentful-slatejs-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"typescript": "^4.4.2"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com/"
}
}
3 changes: 2 additions & 1 deletion packages/rich-text-from-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"url": "git+https://github.com/contentful/rich-text.git"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com/"
},
"scripts": {
"prebuild": "rimraf dist",
Expand Down
3 changes: 2 additions & 1 deletion packages/rich-text-html-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"node": ">=6.0.0"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com/"
},
"scripts": {
"prebuild": "rimraf dist",
Expand Down
3 changes: 2 additions & 1 deletion packages/rich-text-links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"node": ">=6.0.0"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com/"
},
"scripts": {
"build": "tsc --module commonjs && rollup -c rollup.config.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/rich-text-plain-text-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"node": ">=6.0.0"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com/"
},
"scripts": {
"build": "tsc --module commonjs && rollup -c rollup.config.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/rich-text-react-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"node": ">=6.0.0"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com/"
},
"scripts": {
"prebuild": "rimraf dist",
Expand Down
3 changes: 2 additions & 1 deletion packages/rich-text-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"node": ">=6.0.0"
},
"publishConfig": {
"access": "public"
"access": "public",
"registry": "https://npm.pkg.github.com/"
},
"scripts": {
"prebuild": "rimraf dist",
Expand Down
Loading