Skip to content

Commit 67970cd

Browse files
committed
chore(ci): debug bundle script
1 parent 4ebb2e6 commit 67970cd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/bundle.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name: Bundle
33
on:
44
release:
55
types:
6-
- published
76
- created
7+
- published
88
- prereleased
99
- released
1010

1111
jobs:
12-
release:
12+
bundle:
1313
# Prevents changesets action from creating a PR on forks
1414
if: github.repository == 'patternfly/patternfly-elements'
1515
runs-on: ubuntu-latest
@@ -23,13 +23,18 @@ jobs:
2323
- name: Install packages
2424
run: npm i --prefer-offline
2525

26+
- name: Dump GitHub Context
27+
env:
28+
GITHUB_CONTEXT: ${{ toJson(github) }}
29+
run: echo "$GITHUB_CONTEXT"
30+
2631
- name: Bundle
2732
id: bundle
2833
if: ${{ steps.changesets.outputs.published }}
2934
uses: actions/github-script@v6
3035
with:
3136
github-token: ${{secrets.GITHUB_TOKEN}}
3237
script: |
33-
console.log(context.payload.action);
38+
const workspace = '${{ github.workspace }}';
3439
const bundle = require('./scripts/bundle-release.cjs');
35-
await bundle({ context, github, glob, workspace: '${{ github.workspace }}' });
40+
await bundle({ context, github, glob, workspace });

0 commit comments

Comments
 (0)