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

adds new workflow file to provide release branches #1411

Merged
merged 3 commits into from
Jun 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# .github/workflows/push-dist.yml

name: Push dist

on:
push:
branches:
- main
- master

jobs:
push-dist:
name: Push dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
MelSumner marked this conversation as resolved.
Show resolved Hide resolved
- run: npm run build # Add whatever you need to build your pacakage here
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is pretty close to what I'm using over here: https://github.com/NullVoxPopuli/ember-resources/blob/main/.github/workflows/push-dist.yml

but I think, because this repo is using yarn, we need these extra lines after the checkout:
https://github.com/emberjs/ember-test-helpers/blob/master/.github/workflows/ci-build.yml#L20-L21

MelSumner marked this conversation as resolved.
Show resolved Hide resolved
- uses: kategengler/put-built-npm-package-contents-on-branch@v1.0.0
with:
branch: ${{ github.head_ref || github.ref_name }}-dist
token: ${{ secrets.GITHUB_TOKEN }}