Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use build-and-tag-action for creating dist #12

Merged
merged 4 commits into from
May 20, 2020

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented May 19, 2020

this will now use build-and-tag-action to push the v1 tag, and to create the dist/ folder.

index.js Outdated
await gr.createRelease()
const release = await gr.createRelease()
if (release) {
core.setOutput('tag_name', release.tag_name)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JasonEtco I was concerned that having the undefined output might cause issues, will this be a noop?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fine! Would be a noop I believe.

Copy link

@JasonEtco JasonEtco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a note below for the workflow file stuff!

I have a question that might be a blocker - are the .hbs files part of the bundled action? The way build-and-tag-action works today only copies over the action.yml file and the package.json main file. Those won't be carried over - but that seems like a worthwhile feature addition!

@@ -12,3 +12,9 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: release-please-action
- uses: JasonEtco/build-and-tag-action@v1
with:
setup: 'npm ci && npm run build'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of actions/toolkit#461, this won't work 😞 Instead, you'll need:

    - run: npm ci && npm run build
    - uses: JasonEtco/build-and-tag-action@v1
        with:
          setup: ''

You'll likely also need to use actions/checkout before being able to run those.

@bcoe bcoe added the blocked label May 19, 2020
@bcoe
Copy link
Contributor Author

bcoe commented May 19, 2020

@JasonEtco:

are the .hbs files part of the bundled action?

Yes the .hbs files are part of the conventional commit library, and used for the template of the CHANGELOG and GitHub release.

I'm wondering if I could just keep these checked in, since they're likely to change less often.

@bcoe bcoe removed the blocked label May 20, 2020
@bcoe bcoe merged commit 8352160 into master May 20, 2020
@bcoe bcoe deleted the switch-to-action-for-building-dist branch May 20, 2020 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants