Skip to content
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

Implement Github Action CI flow for 2GP #7

Open
ndrewr opened this issue Feb 28, 2020 · 1 comment
Open

Implement Github Action CI flow for 2GP #7

ndrewr opened this issue Feb 28, 2020 · 1 comment

Comments

@ndrewr
Copy link
Contributor

ndrewr commented Feb 28, 2020

The 2nd-Generation Packaging paradigm has the "source of truth" living in source control itself as opposed to in a specific holy org.

We test and deploy via package installation, and we use CLI sfdx force:package api to do this vs the older method using sfdx force:mdapi commands.

See:
[Second Gen Packaging Overview(https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_dev2gp.htm)

and in particular:

Second Gen Packaging Workflow

A project's CI flow will need to know what kind of packaging paradigm is being employed, and call different commands or scripts in response.

  1. Implement a way to configure or signal to a project that this is 1st or 2nd Gen

  2. Implement CI flow based around 2GP using Github Actions

  3. Update the Readme to explain how to setup and use

@ndrewr
Copy link
Contributor Author

ndrewr commented Mar 1, 2020

This series outlines a sample workflow around 2GP/Unlocked packages:
https://developer.salesforce.com/blogs/2018/06/working-with-modular-development-and-unlocked-packages-part-4.html

NOTE
Going thru the sample project's CircleCI config could be a good guide for Gitub Action-powered flow.

https://github.com/trailheadapps/easy-spaces/blob/master/.circleci/config.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant