Merge pull request #986 from ember-cli/add-modules-api #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to branch | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
push-dist: | |
name: Push dist to branch to see built contents | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
with: | |
node-version: 16.x | |
- uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: npm ci | |
if: steps.npm-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- uses: kategengler/[email protected] | |
with: | |
branch: dist | |
token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ./addon/ |