Skip to content

Merge pull request #980 from SergeAstapov/patch-1 #35

Merge pull request #980 from SergeAstapov/patch-1

Merge pull request #980 from SergeAstapov/patch-1 #35

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/put-built-npm-package-contents-on-branch@v1.0.0
with:
branch: dist
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./addon/