Skip to content

Commit

Permalink
The sf cli continues to be endlessly problematic, skipping managed pa…
Browse files Browse the repository at this point in the history
…ckage stage for now
  • Loading branch information
jongpie committed Jan 20, 2024
1 parent a9f0bc0 commit 968a081
Showing 1 changed file with 42 additions and 39 deletions.
81 changes: 42 additions & 39 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,45 +264,48 @@ jobs:
runs-on: ubuntu-latest
environment: 'Demo Org'
steps:
- name: 'Checkout source code'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: 'Restore node_modules cache'
id: cache-npm
uses: actions/cache@v3
with:
path: node_modules
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-${{ env.cache-name }}-
npm-
- name: 'Install npm dependencies'
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

- name: 'Authorize Dev Hub'
shell: bash
run: |
npx sf version
echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
npx sf org login jwt --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub
env:
DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

# TODO remove this after the plugin @salesforce/packaging has been upgraded
# to a new version that only looks at package directories
- name: 'Temporarily delete problematic metadata'
run: |
rm -rf ./config/experience-cloud/
- name: 'Create Beta Managed Package Version'
run: npm run package:version:create:managed
# - name: 'Checkout source code'
# uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.ref }}

# - name: 'Restore node_modules cache'
# id: cache-npm
# uses: actions/cache@v3
# with:
# path: node_modules
# key: npm-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# npm-${{ env.cache-name }}-
# npm-

# - name: 'Install npm dependencies'
# if: steps.cache-npm.outputs.cache-hit != 'true'
# run: npm ci

# - name: 'Authorize Dev Hub'
# shell: bash
# run: |
# npx sf version
# echo "${{ env.DEV_HUB_JWT_SERVER_KEY }}" > ./jwt-server.key
# npx sf org login jwt --instance-url ${{ env.DEV_HUB_AUTH_URL }} --client-id ${{ env.DEV_HUB_CONSUMER_KEY }} --username ${{ env.DEV_HUB_BOT_USERNAME }} --jwt-key-file ./jwt-server.key --set-default-dev-hub
# env:
# DEV_HUB_AUTH_URL: ${{ secrets.DEV_HUB_AUTH_URL }}
# DEV_HUB_BOT_USERNAME: ${{ secrets.DEV_HUB_BOT_USERNAME }}
# DEV_HUB_CONSUMER_KEY: ${{ secrets.DEV_HUB_CONSUMER_KEY }}
# DEV_HUB_JWT_SERVER_KEY: ${{ secrets.DEV_HUB_JWT_SERVER_KEY }}

# # TODO remove this after the plugin @salesforce/packaging has been upgraded
# # to a new version that only looks at package directories
# - name: 'Temporarily delete problematic metadata'
# run: |
# rm -rf ./config/experience-cloud/

# - name: 'Create Beta Managed Package Version'
# run: npm run package:version:create:managed

- name: 'Placeholder because the sf cli and its plugins are trash'
run: echo hello

create-unlocked-package-release-candidate:
name: 'Create Core Package Release Candidate'
Expand Down

0 comments on commit 968a081

Please sign in to comment.