-
Notifications
You must be signed in to change notification settings - Fork 96
43 lines (39 loc) · 1.14 KB
/
bundle.yml
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
33
34
35
36
37
38
39
40
41
42
43
name: Bundle
# on:
# release:
# types:
# - created
# - published
# - prereleased
# - released
on:
workflow_dispatch:
inputs:
tags:
description: Comma separated list of release tags
required: true
type: string
jobs:
bundle:
# Prevents changesets action from creating a PR on forks
if: github.repository == 'patternfly/patternfly-elements'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Bundle
id: bundle
uses: actions/github-script@v6
with:
debug: ${{secrets.ACTIONS_RUNNER_DEBUG}}
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
// APIs provided by github-script action. See README
const api = { core, exec, github, glob };
const tags = '${{ github.event.inputs.tags }}';
const workspace = '${{ github.workspace }}';
const bundle = require('./scripts/bundle-release.cjs');
await bundle({ ...api, tags, workspace });