Skip to content

Commit

Permalink
release: test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Feb 5, 2024
1 parent e258974 commit dacea55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
- run: npm ci
- run: |
RETURN_TAGS=$(node ./scripts/publishPackages)
echo "----- ----- ----- ----- -----"
echo "$RETURN_TAGS"
echo "----- ----- ----- ----- -----"
echo "TAGS=$RETURN_TAGS" >> $GITHUB_ENV
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
8 changes: 3 additions & 5 deletions scripts/publishPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ for (const path of packages) {
/* NOTE
* throw away logs with `stdio: []`
* `npm version` ignored `--silent`, no matter what, hence this measure.
* `--silent` below is kept in case this ever changes.
*/
const context = { cwd: path, stdio: [] }
tags.push(`${getPackageName(path)}@${nextVersion}`)

cp.execSync('npm version ' + nextVersion + ' --silent', context)
cp.execSync('npm version ' + nextVersion, context)
cp.execSync(
'npm set //registry.npmjs.org/:_authToken ' +
process.env.NODE_AUTH_TOKEN +
' --silent',
process.env.NODE_AUTH_TOKEN,
{ cwd: path }
)
cp.execSync('npm publish --access=public --dry-run --silent', context)
cp.execSync('npm publish --access=public', context)
}
} catch (e) {
console.error(e)
Expand Down

0 comments on commit dacea55

Please sign in to comment.