Skip to content

Commit

Permalink
Merge pull request #771 from kategengler/kg-push-built-package-to-branch
Browse files Browse the repository at this point in the history
Push the built contents of the npm package to a branch on every commit to main
  • Loading branch information
NullVoxPopuli authored Feb 25, 2023
2 parents 1623795 + b1f55b6 commit 2aaa5d0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/push-dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Push dist

on:
push:
branches:
- main
- master

jobs:
push-dist:
name: Push dist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/pnpm
- uses: kategengler/[email protected]
with:
branch: dist
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ember-resources
3 changes: 2 additions & 1 deletion ember-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"test": "echo 'Addon does not have tests, run tests in test-app'",
"prepublishOnly": "pnpm run build"
"prepublishOnly": "pnpm run build",
"prepack": "pnpm run build"
},
"dependencies": {
"@babel/runtime": "^7.17.8",
Expand Down

0 comments on commit 2aaa5d0

Please sign in to comment.