From b69547c6ad3c3425f58787f15e58487ed599e4ba Mon Sep 17 00:00:00 2001 From: Julian Krispel-Samsel Date: Mon, 18 May 2020 16:35:56 +0100 Subject: [PATCH] debug --- .github/workflows/release.yml | 14 ++++++++------ scripts/release.js | 3 ++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a5b55b..f942ae5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} @@ -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 }}" - diff --git a/scripts/release.js b/scripts/release.js index 01a2894..5239b71 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -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()) @@ -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) } })