-
-
Notifications
You must be signed in to change notification settings - Fork 101
32 lines (30 loc) · 829 Bytes
/
publish-to-branch.yml
File metadata and controls
32 lines (30 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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@v4
- 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/