From f948d6bcd00424341ee9d0929d46e2037b7aa64a Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Tue, 26 Nov 2024 09:40:22 -0800 Subject: [PATCH] fix: missing dist folder --- .github/workflows/merge.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 3c065c7..a2d32c3 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -19,7 +19,7 @@ jobs: release: name: Release env: - TEMP_BRANCH: release-${{ github.run_number }} + TEMP_BRANCH: temp-${{ github.run_number }} outputs: tag: ${{ steps.changelog.outputs.tag }} permissions: @@ -42,8 +42,10 @@ jobs: skip-on-empty: 'true' git-push: 'false' - - name: Rebuild and push the dist/ directory + - name: Rebuild, push and release if: ${{ steps.changelog.outputs.tag }} + env: + GH_TOKEN: ${{ github.token }} run: | npm run dist git diff ./dist @@ -54,12 +56,6 @@ jobs: git add . git commit -m "Rebuild dist/ directory" git push -u origin HEAD:${{ env.TEMP_BRANCH }} - - - name: Release - env: - GH_TOKEN: ${{ github.token }} - if: ${{ steps.changelog.outputs.tag }} - run: | echo "Creating release ${{ steps.changelog.outputs.tag }}" git push origin tag ${{ steps.changelog.outputs.tag }} gh release create ${{ steps.changelog.outputs.tag }} --title ${{ steps.changelog.outputs.tag }} --generate-notes @@ -69,7 +65,7 @@ jobs: if: always() && ${{ needs.release.outputs.tag }} needs: release env: - TEMP_BRANCH: release-${{ github.run_number }} + TEMP_BRANCH: temp-${{ github.run_number }} permissions: contents: write runs-on: ubuntu-latest