Skip to content

Commit

Permalink
release: test
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Feb 5, 2024
1 parent 10ad56e commit bf85650
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- run: npm ci
- run: |
RETURN_TAGS=$(node ./scripts/publishPackages)
echo "$RETURN_TAGS"
echo "TAGS=$RETURN_TAGS" >> $GITHUB_ENV
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion scripts/publishPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ for (const path of packages) {
if (nextVersion) {
const context = { cwd: path, stdio: 'inherit' }
tags.push(`${getPackageName(path)}@${nextVersion}`)
cp.execSync('npm config set loglevel warn')
cp.execSync('npm version ' + nextVersion, context)
cp.execSync(
'npm set //registry.npmjs.org/:_authToken ' +
process.env.NODE_AUTH_TOKEN,
{ cwd: path }
)
cp.execSync('npm publish --access=public', context)
cp.execSync('npm publish --access=public --dry-run', context)
}
} catch (e) {
console.error(e)
Expand Down

0 comments on commit bf85650

Please sign in to comment.