Skip to content

Commit

Permalink
fix: pipeline release npm for elements by add username (#287)
Browse files Browse the repository at this point in the history
* fix: pipeline release npm for elements by add username

* chore: bump version for reapit elements
  • Loading branch information
duong-se authored Feb 14, 2020
1 parent c72d5f4 commit 182760e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/elements/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reapit/elements",
"version": "0.5.36",
"version": "0.5.37",
"description": "A collection of React components and utilities for building apps for Reapit Marketplace",
"homepage": "https://github.com/reapit/foundations#readme",
"bugs": {
Expand Down
3 changes: 3 additions & 0 deletions scripts/release/release-npm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node
const { getPreviousTag, editReleaseNote, getVersionTag, runCommand } = require('./utils')
const execSync = require('child_process').execSync

const releaseNpm = async () => {
const [, , ...args] = process.argv
Expand All @@ -12,6 +13,8 @@ const releaseNpm = async () => {
}

if (packageName === packageNameOnTag) {
execSync(`git config --global user.email "${process.env.GITHUB_ACTOR}@email.com"`)
execSync(`git config --global user.name "${process.env.GITHUB_ACTOR}"`)
runCommand('yarn', ['publish'])
const previousTag = getPreviousTag({ packageName: packageNameOnTag })
if (packageName === 'elements') {
Expand Down

0 comments on commit 182760e

Please sign in to comment.