-
Notifications
You must be signed in to change notification settings - Fork 54
Added reactor-extension-alloy as a package within alloy #1448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Spencer-Smith
wants to merge
1,979
commits into
main
Choose a base branch
from
joinExtensionRepo
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
1979 commits
Select commit
Hold shift + click to select a range
d801179
[skip ci] 2.29.0-beta.3
865c487
Adjust colors of buttons and inputs to match older gray values (#472)
carterworks 74ebe72
[skip ci] 2.29.0-beta.4
d58fc96
Context is a required component now. (#473)
dompuiu 0c22996
[skip ci] 2.29.0-beta.5
c797baa
After making the context component required, the context settings wer…
jonsnyder ca00a4e
[skip ci] 2.29.0-beta.6
630ca3b
Fix an error that occurs when saving with an open custom build sectio…
jonsnyder 9ee4dac
[skip ci] 2.29.0-beta.7
2ef4804
Use latest node. (#476)
dompuiu 21c7971
[skip ci] 2.29.0-beta.8
343e769
[skip ci] 2.29.0
6d77898
PDCL-13324 Validation error for Variable data element when a working …
dompuiu aed05c6
[skip ci] 2.29.1
456fb52
Fix broken context tests (#478)
carterworks 988c6c4
Refactor CSS and address accessibility concerns (#479)
carterworks fdb3da2
Add SonarQube action. (#482)
dompuiu 609ee94
Transform the action in a warning
dompuiu 736b122
Add new validation and UI for link callbacks, add clear button to cod…
jonsnyder d2e56d0
Added ability to set thirdPartyCookiesEnabled from a data element (#480)
jonsnyder fb86deb
Update alloy for 2.30.0 extension release (#483)
jonsnyder 494a606
[skip ci] 2.30.0-beta.0
b1ed4fa
Remove onBeforeLinkClickSend from settings object when necessary. (#485)
dompuiu a1c173e
[skip ci] 2.30.0-beta.1
833f971
[skip ci] 2.30.0
dccf154
Update dependencies. (#487)
dompuiu 4939892
PLATIR-49623 Do not crash the view when no default sandbox is receive…
dompuiu 77e1daa
[skip ci] 2.30.1-beta.0
09b5f42
[skip ci] 2.30.1
32a0486
Update dependencies (#489)
carterworks 84f15d6
Fix functional tests (#490)
carterworks 4f4f12c
Update alloy version to 2.28.0 (#494)
adobe-alloy-bot ac23678
[skip ci] 2.31.0-beta.0
99643d6
Fixed an issue where an error is thrown when a datastream override is…
carterworks 6e659f5
[skip ci] 2.31.0-beta.1
50d57f8
Fixed an issue where empty idSyncContainerId overrides would throw an…
carterworks c9f5aa0
[skip ci] 2.31.0-beta.2
271ca51
Fix Alloy componentCreators dependency path for builds. (#496)
carterworks bf22242
[skip ci] 2.31.0-beta.3
048e3d7
[skip ci] 2.31.0-beta.4
0b4ca4b
send event into the get Data Element function (#499)
ninaceban ad018ea
[skip ci] 2.31.0-beta.5
46b7bda
Empty out empty objects, arrays, and strings from edge config overrid…
carterworks 380c32b
[skip ci] 2.31.0-beta.6
461ab0e
Update alloy to the exact version and not with a ^ (#501)
jonsnyder b25ee99
[skip ci] 2.31.0-beta.7
26bfad1
[skip ci] 2.31.0
5f84fba
Use Alloy v2.28.1-beta.0 (#503)
carterworks 9c4543e
Revert "Fix Alloy componentCreators dependency path for builds. (#496…
carterworks 71f45fa
[skip ci] 2.31.1-beta.0
7815ca3
Fix lint errors and introduce more quality checks for pull requests (…
carterworks 70eaf35
[skip ci] 2.31.1-beta.1
9c1d82e
Use Alloy v2.28.1 (#506)
carterworks e28b332
[skip ci] 2.31.1-beta.2
d59a4b9
[skip ci] 2.31.1
ba130a1
Fix npm run test:functional:test (#508)
carterworks 892ad17
Add support for Adobe Advertising integration with AJO (#495)
vsukheja 305edf9
Update reference to alloy (#510)
jonsnyder a534be4
[skip ci] 2.32.0-beta.0
412f69e
Update dependencies. (#511)
dompuiu 34c0c7a
[skip ci] 2.32.0-beta.1
f229c71
updated labels and messages (#512)
vsukheja fbc7558
[skip ci] 2.32.0-beta.2
7614bfd
Update to alloy 2-29-0-beta-3 (#514)
carterworks 3e32719
[skip ci] 2.32.0-beta.3
58166e3
Allow editing of XDM data elements with missing schema and sandbox er…
jonsnyder 5e98d6c
[skip ci] 2.32.0-beta.4
044201f
Update dependencies. (#517)
dompuiu a3f33f3
[skip ci] 2.32.0-beta.5
fa46a20
Update wording in Ad component UI (#515)
jonsnyder 9f7d1f0
[skip ci] 2.32.0-beta.6
5be00a8
Push notifications (#516)
dompuiu f611cab
[skip ci] 2.32.0-beta.7
f023630
[skip ci] 2.32.0-beta.8
dbdcb37
change the alloy version in package.json to only accept versions with…
jonsnyder 0b4237c
[skip ci] 2.32.0-beta.9
0037088
Revert "change the alloy version in package.json to only accept versi…
jonsnyder a70b8ac
Update package-lock.json to be in-sync
jonsnyder 843f7ce
[skip ci] 2.32.0-beta.10
5e7f0f4
Fixed an issue where send event options from disabled components were…
jonsnyder cefc911
[skip ci] 2.32.0-beta.11
1ec329c
[skip ci] 2.32.0-beta.12
0d8e0e4
[skip ci] 2.32.0
ca0ce77
Remove unused dependencies. (#524)
dompuiu b02f3fc
updating learn more URLs for Adobe Advertising (#526)
vsukheja d7fb4f0
Fix issue where the advertising component was always included in the …
jonsnyder 78891ff
[skip ci] 2.32.1-beta.0
96959ca
Add appID and tracking dataset id fields to be provided by the user. …
dompuiu c4b4098
[skip ci] 2.32.1-beta.1
986a098
Use pnpm (#528)
carterworks 53c15a9
[skip ci] 2.32.1-beta.2
886b8ee
Update alloy (#530)
jonsnyder 789b433
[skip ci] 2.32.1-beta.3
cbfd699
[skip ci] 2.33.0-beta.0
8cb4070
Use npm to run rollup in package build (#531)
carterworks f53c793
[skip ci] 2.33.0-beta.1
f62333a
Add doc links for variable components (#529)
Spencer-Smith cdedcf6
[skip ci] 2.33.0-beta.2
e98ffe8
Update schema with new fields. (#533)
dompuiu f9a9db8
[skip ci] 2.33.0-beta.3
9d2c1bd
Fix buildAlly.mjs npm exec command structure (#534)
carterworks a2388e7
[skip ci] 2.33.0-beta.4
fecca84
[skip ci] 2.33.0-beta.5
f3eed97
Add a link for how to install the service worker code. (#535)
dompuiu c25596a
[skip ci] 2.33.0-beta.6
c9e36a9
[skip ci] 2.33.0
ad02d59
Added link to create datastream/schema where those components are sel…
Spencer-Smith a63b0bc
Make error text shorter. (#536)
dompuiu db207b6
Fix the Send media event action get settings. (#539)
dompuiu 6e963c1
Upgrade sonarqube action to v6. (#541)
dompuiu be69d5b
Restore all the fields with the previous stored values. (#542)
dompuiu 1df78f2
Fix functional tests infrastructure (#540)
carterworks 9a7448e
Fixed autoPopulationAlert to use node's absolute path (#538)
Spencer-Smith 33ee52b
FEAT: flush queue on extension load (#543)
Spencer-Smith 396abf5
Update default edge domain (#544)
Spencer-Smith aabea75
Update SonarQube GitHub action. (#546)
dompuiu f03fdce
Update alloy version (#547)
jonsnyder c1000d8
Update release notes config (#548)
jonsnyder dd62d30
[skip ci] 2.34.0-beta.0
d97a3f5
Add verbose logging when building extension manifest
jonsnyder a61c4d4
[skip ci] 2.34.0-beta.1
49dc3b5
[skip ci] 2.34.0-beta.2
3e55f2e
Update dependencies. (#549)
dompuiu ae9f1d7
[skip ci] 2.34.0-beta.3
b523859
Consolidate alloy components details in one place. (#551)
dompuiu be5f500
[skip ci] 2.34.0-beta.4
fa82b4e
Remove React references. (#550)
dompuiu 85f2398
[skip ci] 2.34.0-beta.5
ac2d447
Remove UUID. (#552)
dompuiu c1eeacc
[skip ci] 2.34.0-beta.6
67abbed
Add integration test suite. (#553)
dompuiu e618f67
[skip ci] 2.34.0-beta.7
9e2173c
Add tests for push notification integration tests. (#557)
dompuiu 1fc2400
[skip ci] 2.34.0-beta.8
a28420f
Add integration tests for personalization component. (#559)
dompuiu 193c77e
[skip ci] 2.34.0-beta.9
a1f24dd
Remove ban plugin. We used it for Jasmine tests. (#556)
dompuiu 7c32567
[skip ci] 2.34.0-beta.10
217e515
Add integration tests for the consent section. (#560)
dompuiu ba36820
[skip ci] 2.34.0-beta.11
2ea433e
Fix npm warnings. (#561)
dompuiu 85f8713
[skip ci] 2.34.0-beta.12
506775e
Add integration tests for identity section. (#562)
dompuiu 89448a0
[skip ci] 2.34.0-beta.13
eae5cc8
General settings and datastream section integration tests. (#563)
dompuiu 1589f1f
[skip ci] 2.34.0-beta.14
349eb32
Remove unused files. (#566)
dompuiu 323cee4
[skip ci] 2.34.0-beta.15
0c7d882
Add tests for data collection section. (#565)
dompuiu d72a55c
[skip ci] 2.34.0-beta.16
e210c49
Add tests for the advanced section. (#568)
dompuiu 994d48e
[skip ci] 2.34.0-beta.17
0f249b8
Added node description and enum values to the object edtior (#545)
Spencer-Smith d80ff15
[skip ci] 2.34.0-beta.18
948cc00
Add tests for the advertising section. (#567)
dompuiu c9eaad4
[skip ci] 2.34.0-beta.19
f08038e
Configuration tests consolidation. (#569)
dompuiu 32fd401
[skip ci] 2.34.0-beta.20
7f19425
Fix an error where combinedValidatior was throwing an error when the …
dompuiu 555b385
[skip ci] 2.34.0-beta.21
ea591c6
PDCL-14405 Fix error that was appearing when an instance was deleted …
dompuiu 6a35f0a
[skip ci] 2.34.0-beta.22
03494c0
Update dependencies. (#572)
dompuiu f2af467
[skip ci] 2.34.0-beta.23
e09ab59
Added ml-assisted schema workflow link to Data Elements/Variable view…
Spencer-Smith 6cde870
[skip ci] 2.34.0-beta.24
0c51c5b
Refactor how handlers will be used. This new way allows tests to over…
dompuiu 81ae92b
[skip ci] 2.34.0-beta.25
6a02bcd
Fixed default edge domain population/saving from extension configurat…
Spencer-Smith 5346bc4
[skip ci] 2.34.0-beta.26
c70ce08
Added oneTimeAnalyticsReferrer context to the extension settings (#573)
Spencer-Smith 6571200
[skip ci] 2.34.0-beta.27
9938adf
Migrate some other configuration tests. (#576)
dompuiu 2527d92
[skip ci] 2.34.0-beta.28
5cd9a88
Add Brand Concierge component. (#555)
dompuiu aa325bf
[skip ci] 2.34.0-beta.29
0a7c312
New tests in the configuration section. (#578)
dompuiu bfdc131
[skip ci] 2.34.0-beta.30
591567d
Added refresh button to repopulate items on some input fields (#577)
Spencer-Smith 2309bf7
[skip ci] 2.34.0-beta.31
991260f
Focus on the first field that shows an error. (#579)
dompuiu 431abb5
Generate a unique instance name everytime an instance is created. (#580)
dompuiu 5354016
[skip ci] 2.34.0-beta.32
93ed9d0
Add option to allow using a self-hosted alloy instance with Tags (#498)
ramboz 722e4a3
[skip ci] 2.34.0-beta.33
f987262
Add execution permissions.
dompuiu 535d2f1
[skip ci] 2.34.0-beta.34
7afe0ff
String have quotes added to the command.
dompuiu c79aafd
[skip ci] 2.34.0-beta.35
e606586
Typo fix.
dompuiu 7c27dbe
[skip ci] 2.34.0-beta.36
704fd69
Try a new way to escape chars.
dompuiu 3ec8c7f
[skip ci] 2.34.0-beta.37
1331072
Fix the package structure.
dompuiu 4a636dc
[skip ci] 2.34.0-beta.38
e3c6681
Provide the input file when building the self hosted alloy shell.
dompuiu e537698
[skip ci] 2.34.0-beta.39
0cddaac
Always build the empty alloy.
dompuiu 775c26e
[skip ci] 2.34.0-beta.40
245a4a1
Escape properly.
dompuiu 6136fee
[skip ci] 2.34.0-beta.41
588d9d1
Use POSIX compliant condition.
dompuiu 2436430
[skip ci] 2.34.0-beta.42
820de8e
Fix the POSIX condition.
dompuiu 7a62b76
[skip ci] 2.34.0-beta.43
deab02f
Added 'no overrides' option to config overrides. (#554)
jonsnyder f07a30a
[skip ci] 2.34.0-beta.44
6cccc6f
Fixed an issue where an error while fetching schemas caused the XDM O…
jonsnyder c2aad7c
Add command that you can use to debug one test file at a time. (#583)
dompuiu 8616c43
Allow advertisers to be manually entered in the form when the API cal…
dompuiu 77aa80a
[skip ci] 2.34.0-beta.45
9ccb265
Improve wording. (#584)
dompuiu 52ccca1
[skip ci] 2.34.0-beta.46
946308c
Fix link to documentation. (#587)
dompuiu 847262e
[skip ci] 2.34.0-beta.47
e94c9ca
Add brand concierge settings (#585)
carterworks 270e646
[skip ci] 2.34.0-beta.48
ac03f5a
Relax the schema. (#589)
dompuiu 8bfbcb4
[skip ci] 2.34.0-beta.49
6acdf92
Update alloy to 2.30.1-beta.22 (#590)
carterworks b5387bd
2.34.0.-beta.50
dompuiu cc97fa4
[skip ci] 2.34.0-beta.51
57265f1
[skip ci] 2.34.0-beta.52
dc829b0
Update alloy version after minor version bump (#591)
jonsnyder e577572
[skip ci] 2.34.0-beta.53
5a07e31
Add streamTimeout and stickyConversationSession to the conversation k…
dompuiu 04c1760
2.34.0-beta.54
dompuiu 586694e
[skip ci] 2.34.0-beta.55
53ca702
[skip ci] 2.34.0
de37816
Fallback to tenant-specific domain when switching back to Tags-manage…
Spencer-Smith b452a79
Show advertising settings in the send event view when the component …
dompuiu acf398a
chore: update alloy to 2.31.1-beta.0 (#595)
carterworks 9e422e6
[skip ci] 2.34.1-beta.0
9bed307
Updated @adobe/alloy to 2.31.1 (#597)
carterworks 9341e5d
[skip ci] 2.34.1-beta.1
8d72f00
[skip ci] 2.34.1
30369f4
Add tests. (#596)
dompuiu 1e545ed
Bump ajv from 8.17.1 to 8.18.0 (#598)
dependabot[bot] 7d11845
Add 'packages/reactor-extension/' from commit '1e545edab723b478525807…
Spencer-Smith 977d955
Migrated reactor-extension-alloy to packages/reactor-extension; moved…
Spencer-Smith 4084c30
Added empty changeset
Spencer-Smith f15b1ec
Build at workspace root as part of github workflows
Spencer-Smith d8bee88
Add build preinstalled to base build pnpm script
Spencer-Smith 475b0aa
Fix test failure
Spencer-Smith 329788f
Add back shortcut for test:unit for husky
Spencer-Smith 17c7700
Step one towards linter config integration (move to same file)
Spencer-Smith 7133f54
Update pnpm lockfile, PR feedback on changeset publish updates
Spencer-Smith 29057f8
Remove extension-quality workflow as its checks are consolidated into…
Spencer-Smith 5c78aab
Format core files with prettier
Spencer-Smith c047c79
Buld alloy lib for extension tests
Spencer-Smith File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| --- | ||
| --- |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <!--- STOP! Before you open an issue please search this repository's issues to see if it has already been reported. This helps reduce duplicate issues from being created. --> | ||
| <!--- SECURITY DISCLOSURE: If this is a security disclosure please follow the guidelines in CONTRIBUTING.md. This helps keep folks from accidentally releasing vulnerabilities before the maintainers get a chance to fix the issue. --> | ||
|
|
||
| ### Expected Behaviour | ||
|
|
||
| ### Actual Behaviour | ||
|
|
||
| ### Reproduce Scenario (including but not limited to) | ||
|
|
||
| #### Steps to Reproduce | ||
|
|
||
| #### Platform and Version | ||
|
|
||
| #### Sample Code that illustrates the problem | ||
|
|
||
| #### Logs taken while reproducing problem |
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,6 +144,18 @@ jobs: | |
| VERSION=$(jq -r '.version' package.json) | ||
| echo "Root version after versioning: ${VERSION}" | ||
|
|
||
| - name: Bump extension when @adobe/alloy was released | ||
| if: hashFiles('packages/reactor-extension/package.json') != '' | ||
| run: | | ||
| ALLOY_NEW=$(jq -r '.releases[] | select(.name=="@adobe/alloy") | .newVersion' changeset-status.json) | ||
| if [ -z "${ALLOY_NEW}" ] || [ "${ALLOY_NEW}" = "null" ]; then | ||
| echo "No @adobe/alloy release in this run; skipping extension bump." | ||
| exit 0 | ||
| fi | ||
| cd packages/reactor-extension | ||
| pnpm add @adobe/alloy@$ALLOY_NEW | ||
| pnpm version patch --no-commit-hooks | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think about always doing the same kind of version bump as |
||
|
|
||
| - name: Update lockfile | ||
| run: pnpm install --no-frozen-lockfile --ignore-scripts | ||
|
|
||
|
|
@@ -218,6 +230,31 @@ jobs: | |
| - name: Upload browser artifacts to CDN | ||
| run: node scripts/uploadToCDN.js | ||
|
|
||
| - name: Package and deploy extension to Reactor (when @adobe/alloy was released) | ||
| if: hashFiles('packages/reactor-extension/package.json') != '' | ||
| env: | ||
| REACTOR_IO_INTEGRATION_CLIENT_SECRET: ${{ secrets.REACTOR_IO_INTEGRATION_CLIENT_SECRET }} | ||
| run: | | ||
| if ! jq -e '.releases[] | select(.name=="@adobe/alloy")' changeset-status.json >/dev/null; then | ||
| echo "@adobe/alloy was not in this release; skipping extension deploy." | ||
| exit 0 | ||
| fi | ||
| EXT_VERSION=$(node -p "require('./packages/reactor-extension/package.json').version") | ||
| pnpm --filter reactor-extension-alloy run build | ||
| node scripts/deployExtensionToReactor.mjs "${EXT_VERSION}" | ||
|
|
||
| - name: Restore extension workspace protocol for @adobe/alloy | ||
| if: hashFiles('packages/reactor-extension/package.json') != '' | ||
| run: | | ||
| if ! jq -e '.releases[] | select(.name=="@adobe/alloy")' changeset-status.json >/dev/null; then exit 0; fi | ||
| node -e " | ||
| const fs = require('fs'); | ||
| const p = JSON.parse(fs.readFileSync('packages/reactor-extension/package.json', 'utf8')); | ||
| if (p.dependencies['@adobe/alloy']) p.dependencies['@adobe/alloy'] = 'workspace:*'; | ||
| fs.writeFileSync('packages/reactor-extension/package.json', JSON.stringify(p, null, 2)); | ||
| " | ||
| git add packages/reactor-extension/package.json | ||
|
|
||
| - name: Re-enter beta prerelease mode for next cycle after a stable release | ||
| if: needs.analyze.outputs.is_prerelease != 'true' | ||
| run: pnpm changeset pre enter beta | ||
|
|
||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: CodeQL | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| schedule: | ||
| - cron: "26 7 * * 3" | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: ["javascript"] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
|
|
||
| - name: Autobuild | ||
| uses: github/codeql-action/autobuild@v3 | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,113 @@ | ||
| name: Deploy Extension Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: "Extension version (e.g. 2.34.2)" | ||
| required: true | ||
|
|
||
| jobs: | ||
| validate: | ||
| name: Validate version | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: adobe/project-card-release-automation/validate-version@v2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| version: ${{ github.event.inputs.version }} | ||
|
|
||
| release: | ||
| name: Release | ||
| runs-on: ubuntu-latest | ||
| needs: validate | ||
| if: ${{ contains(github.event.inputs.version, '-') == false }} | ||
| environment: Production | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: latest | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v5 | ||
| with: | ||
| node-version-file: .nvmrc | ||
| cache: pnpm | ||
| - uses: webfactory/ssh-agent@v0.9.1 | ||
| with: | ||
| ssh-private-key: ${{ secrets.ALLOY_BOT_GITHUB_SSH_PRIVATE_KEY }} | ||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Version extension | ||
| run: pnpm version ${{ github.event.inputs.version }} --no-commit-hooks | ||
| working-directory: packages/reactor-extension | ||
| - name: Build extension (refresh extension.json) | ||
| run: pnpm --filter reactor-extension-alloy run build | ||
| - name: Commit and push | ||
| run: | | ||
| git config user.name "$GITHUB_ACTOR" | ||
| git config user.email "gh-actions-$GITHUB_ACTOR@github.com" | ||
| git remote set-url origin "git@github.com:${{ github.repository }}.git" | ||
| git add packages/reactor-extension/package.json | ||
| git diff --staged --quiet || git commit -m "[skip ci] extension ${{ github.event.inputs.version }}" | ||
| git push origin HEAD:${{ github.ref_name }} | ||
| - name: Package and deploy to Reactor | ||
| env: | ||
| REACTOR_IO_INTEGRATION_CLIENT_SECRET: ${{ secrets.REACTOR_IO_INTEGRATION_CLIENT_SECRET }} | ||
| run: node scripts/deployExtensionToReactor.mjs ${{ github.event.inputs.version }} | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: extension-package | ||
| path: packages/reactor-extension/package-adobe-alloy-${{ github.event.inputs.version }}.zip | ||
| - name: Record release | ||
| uses: adobe/project-card-release-automation/record-release@v2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| version: ${{ github.event.inputs.version }} | ||
|
|
||
| prerelease: | ||
| name: Prerelease | ||
| runs-on: ubuntu-latest | ||
| needs: validate | ||
| if: ${{ contains(github.event.inputs.version, '-') }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: latest | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v5 | ||
| with: | ||
| node-version-file: .nvmrc | ||
| cache: pnpm | ||
| - uses: webfactory/ssh-agent@v0.9.1 | ||
| with: | ||
| ssh-private-key: ${{ secrets.ALLOY_BOT_GITHUB_SSH_PRIVATE_KEY }} | ||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Version extension | ||
| run: pnpm version ${{ github.event.inputs.version }} --no-commit-hooks | ||
| working-directory: packages/reactor-extension | ||
| - name: Build extension (refresh extension.json) | ||
| run: pnpm --filter reactor-extension-alloy run build | ||
| - name: Commit and push | ||
| run: | | ||
| git config user.name "$GITHUB_ACTOR" | ||
| git config user.email "gh-actions-$GITHUB_ACTOR@github.com" | ||
| git remote set-url origin "git@github.com:${{ github.repository }}.git" | ||
| git add packages/reactor-extension/package.json | ||
| git diff --staged --quiet || git commit -m "[skip ci] extension ${{ github.event.inputs.version }}" | ||
| git push origin HEAD:${{ github.ref_name }} | ||
| - name: Package and deploy to Reactor | ||
| env: | ||
| REACTOR_IO_INTEGRATION_CLIENT_SECRET: ${{ secrets.REACTOR_IO_INTEGRATION_CLIENT_SECRET }} | ||
| run: node scripts/deployExtensionToReactor.mjs ${{ github.event.inputs.version }} | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: extension-package | ||
| path: packages/reactor-extension/package-adobe-alloy-${{ github.event.inputs.version }}.zip | ||
| - name: Record release | ||
| uses: adobe/project-card-release-automation/record-release@v2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| version: ${{ github.event.inputs.version }} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: Initialize Intended Extension Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| type: | ||
| description: "Release Type [major|minor|patch]" | ||
| required: true | ||
|
|
||
| jobs: | ||
| initializeIntendedRelease: | ||
| name: Initialize Intended Extension Release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: adobe/project-card-release-automation/initialize-card@v2 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| releaseType: ${{ github.event.inputs.type }} | ||
| projectNumber: 1 |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Trigger Extension Release | ||
|
|
||
| on: | ||
| project_card: | ||
| types: [moved] | ||
| push: | ||
| branches: | ||
| - main | ||
| - "v[0-9]+" | ||
| - "v[0-9]+.[0-9]+" | ||
|
|
||
| jobs: | ||
| triggerReleaseIfNeeded: | ||
| name: Trigger Extension Release If Needed | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: adobe/project-card-release-automation/trigger-release@v2 | ||
| with: | ||
| token: ${{ secrets.ALLOY_BOT_GITHUB_TOKEN }} | ||
| workflowId: "deployExtensionRelease.yml" | ||
| projectNumber: 1 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conditional (and the copy of it on line 241) will always return true, since you have created that file.
hashFilesreturns a hash of the file, and the hash of a file that exists will never be''