From e7ad2e43cf3936aa62e3840fa55056f1d8b73c5d Mon Sep 17 00:00:00 2001 From: Markus Sanin Date: Fri, 21 Jun 2024 12:07:27 +0200 Subject: [PATCH] Add push dist workflow --- .github/workflows/push-dist.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/push-dist.yml diff --git a/.github/workflows/push-dist.yml b/.github/workflows/push-dist.yml new file mode 100644 index 00000000..be0fb9e6 --- /dev/null +++ b/.github/workflows/push-dist.yml @@ -0,0 +1,35 @@ +# Because this library needs to be built, +# we can't easily point package.json files at the git repo for easy cross-repo testing. +# +# This workflow brings back that capability by placing the compiled assets on a "dist" branch +# (configurable via the "branch" option below) +name: Push dist + +on: + push: + branches: + - main + - master + +jobs: + push-dist: + name: Push dist + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: pnpm + - name: Install Dependencies + run: pnpm install --frozen-lockfile + - uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0 + with: + branch: dist + token: ${{ secrets.GITHUB_TOKEN }} + working-directory: 'ember-basic-dropdown' \ No newline at end of file