Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/continuousIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ on:

jobs:
build:
runs-on: ubuntu-20.04-4core
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
fetch-depth: 0

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ">=18"
node-version: ">=20"
check-latest: true

- name: Install Salesforce CLI + Scanner
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Generate Package Version

on:
workflow_dispatch:
inputs:
packageVersion:
required: true
type: string

jobs:
create-package-version:
runs-on: ubuntu-latest
outputs:
packageId: ${{ steps.create.outputs.packageId }}
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ">=20"

- name: Install sf cli
run: |
npm install --global @salesforce/cli

- name: Authenticate into DevHub
run: |
echo "${SALESFORCE_JWT_SECRET_KEY}" > server.key
sf org login jwt --client-id ${{ secrets.SALESFORCE_CONSUMER_KEY }} --jwt-key-file server.key --username ${{ secrets.SALESFORCE_DEVHUB_USERNAME}} --set-default-dev-hub --alias devhub
env:
SALESFORCE_JWT_SECRET_KEY: ${{ secrets.SALESFORCE_JWT_SECRET_KEY }}

- name: Create package version
id: create
run: |
sf package version create --definition-file config/project-scratch-def.json --package "Evolve Forms" --version-number ${{ inputs.packageVersion }} --wait 120 --code-coverage --installation-key-bypass
cat sfdx-project.json
13 changes: 5 additions & 8 deletions sfdx-project.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
{
"packageDirectories": [
{
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"path": "evolve-forms",
"default": true,
"package": "Evolve Forms",
"versionName": "ver 0.1",
"versionNumber": "0.1.0.NEXT",
"versionDescription": ""
}
],
"name": "Evolve Forms",
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "59.0",
"sourceApiVersion": "64.0",
"packageAliases": {
"Evolve Forms": "0HoDn000000XZtZKAW",
"Evolve [email protected]": "04tDn000000nG2MIAU",
"Evolve [email protected]": "04tDn000000nG7rIAE",
"Evolve [email protected]": "04tDn000000nGCNIA2"
"Evolve Forms": "0HoKY000000Gtig0AC"
}
}
}