Skip to content

Commit

Permalink
Correct npmrc (#72)
Browse files Browse the repository at this point in the history
* Correct npmrc

* Add newline

* Move login to CI step
  • Loading branch information
rkulinski authored Nov 23, 2023
1 parent 23a0bd3 commit 95d7281
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Set deployment token
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
- name: Publish
run: |
pnpm install --no-frozen-lockfile
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

5 changes: 3 additions & 2 deletions scripts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,12 +557,13 @@ async function run() {
// Publish each package
changedPackages.map((pkg) => {
const packageDir = path.join(rootDir, 'packages', pkg.packageDir)
const cmd = `npm login && cd ${packageDir} && npm publish --tag ${npmTag} --access=public --no-git-checks`
const cmd = `cd ${packageDir} && npm publish --tag ${npmTag} --access=public --no-git-checks`
console.info(
` Publishing ${pkg.name}@${version} to npm with tag "${npmTag}"...`,
)

execSync(`${cmd} --token ${process.env.NPM_TOKEN}`)
// execSync(`${cmd} --token ${process.env.NPM_TOKEN}`)
execSync(cmd)
})

console.info()
Expand Down

0 comments on commit 95d7281

Please sign in to comment.