Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankrispel committed May 18, 2020
1 parent a8c6a28 commit b69547c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ jobs:
env:
PACKAGES: core, react
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Print the entry
run: |
echo "${{ steps.changelog_entry.outputs.title }}"
echo "${{ steps.changelog_entry.outputs.version }}"
echo "${{ steps.changelog_entry.outputs.description }}"
echo "${{ steps.changelog_entry.outputs.unreleased }}"
- name: Create Release if does not exist
run: echo "release this"
if: ${{ steps.changelog_entry.outputs.unreleased == true }}
Expand All @@ -47,9 +55,3 @@ jobs:
# npm publish
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Print the entry
# run: |
# echo "${{ steps.changelog_entry.outputs.title }}"
# echo "${{ steps.changelog_entry.outputs.version }}"
# echo "${{ steps.changelog_entry.outputs.description }}"

3 changes: 2 additions & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function run() {
core.setOutput('version', version.version)
core.setOutput('description', version.body)
core.setOutput('unreleased', true)

console.log('setting unreleased to true')

packages.forEach(package => {
const packageJson = JSON.parse(fs.readFileSync(path.join('./', package, 'package.json')).toString())
Expand All @@ -36,6 +36,7 @@ async function run() {
// check if already released on github, if it does we set the output of unreleased to false
releases.forEach(release => {
if(release.tag_name.includes(version.version)) {
console.log('setting unreleased to false')
core.setOutput('unreleased', false)
}
})
Expand Down

0 comments on commit b69547c

Please sign in to comment.