Skip to content

Commit

Permalink
Merge pull request #2 from alienfast/npm-repo-availability
Browse files Browse the repository at this point in the history
Update workflow and make available on npm repo in addition to github
  • Loading branch information
rosskevin authored Jan 22, 2025
2 parents dfb71e6 + 655ba0e commit 3555f27
Show file tree
Hide file tree
Showing 9 changed files with 1,859 additions and 1,830 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- name: Prepare repository
run: git fetch --unshallow --tags

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 'latest'
cache: 'yarn'

# allow the lock file to change (updating our own workspace versions in monorepo)
Expand All @@ -30,4 +30,10 @@ jobs:
with:
commit_message: Apply yarn.lock changes

# publishes canaries and releases to github
- run: yarn release

# cannot run this on branches because it doesn't keep the canary version from auto shipit, can only secondarily publish to npm for main branch
- name: Publish secondarily to npm
run: npm publish --access=public --ignore-scripts --@alienfast:registry='https://registry.npmjs.org'
if: github.ref == 'refs/heads/main'
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# provide this for the github actions
@alienfast:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
9 changes: 0 additions & 9 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

873 changes: 0 additions & 873 deletions .yarn/releases/yarn-3.5.0.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.6.0.cjs

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

npmRegistries:
Expand All @@ -9,10 +13,4 @@ npmScopes:
npmAlwaysAuth: true
npmRegistryServer: "https://npm.pkg.github.com"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.5.0.cjs
yarnPath: .yarn/releases/yarn-4.6.0.cjs
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"release": "yarn auto shipit"
},
"dependencies": {
"@tsconfig/create-react-app": "^1.0.3"
"@tsconfig/create-react-app": "^2.0.5"
},
"engines": {
"node": ">=16"
Expand All @@ -24,10 +24,10 @@
"repository": "https://github.com/alienfast/tsconfig",
"author": "Kevin Ross <[email protected]>",
"devDependencies": {
"@auto-it/all-contributors": "^10.46.0",
"@auto-it/first-time-contributor": "^10.46.0",
"@auto-it/released": "^10.46.0",
"auto": "^10.46.0"
"@auto-it/all-contributors": "^11.3.0",
"@auto-it/first-time-contributor": "^11.3.0",
"@auto-it/released": "^11.3.0",
"auto": "^11.3.0"
},
"auto": {
"plugins": [
Expand All @@ -37,5 +37,5 @@
"released"
]
},
"packageManager": "yarn@3.5.0"
"packageManager": "yarn@4.6.0"
}
Loading

0 comments on commit 3555f27

Please sign in to comment.