Skip to content

Commit

Permalink
yo gotta work
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmgdr committed Oct 20, 2023
1 parent 7e77062 commit b168789
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
# when there are version changes "All files have been updated. Review them and commit at your leisure"
# when there are no version changes "No unreleased changesets found, exiting"
- name: Publish packages
run: echo '"PUBLISHED_PACKAGES=$(yarn ts-node publish.ts)" >> "$GITHUB_OUTPUT"'
run: echo "PUBLISHED_PACKAGES=$(yarn ts-node publish.ts)" >> "$GITHUB_OUTPUT"

# Publishing "@celo/phone-number-privacy-common" at "3.0.4-alpha-964a99345"
# id like to take all lines like the above and create an array of packages with form
# ["@celo/[email protected]"]
Expand Down
7 changes: 4 additions & 3 deletions publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ function publish() {
if (!line) return
return line[0].replace('info Publishing ', '').replace(' at ', '@')
}).join(',')
process.env.PKGS = pkgs
console.log(pkgs)
return pkgs
const result = pkgs ? pkgs : 'no-op'
process.env.PKGS = result
console.info(result)
return result
}

publish()

0 comments on commit b168789

Please sign in to comment.