GithubHelp home page GithubHelp logo

svierk / sfdx-package-installation Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 5 KB

๐Ÿ“ฆ Github composite action for installing packages on a specific Salesforce org

Home Page: https://github.com/marketplace/actions/sfdx-package-installation

License: MIT License

composite-action github-actions salesforce sfdx sfdx-cli

sfdx-package-installation's Introduction

๐Ÿ“ฆ SFDX Package Installation

This repository implements a simple GitHub composite action for installing packages on a specific Salesforce target org.

Usage

After installing the SF CLI and authorizing the relevant org in your GitHub workflow, packages can be installed using this action as follows:

jobs:
  validation:
    name: Validation
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Select Node Version
        uses: svierk/get-node-version@main

      - name: Install Dependencies
        run: npm ci
      
      - name: Install SF CLI
        uses: svierk/sfdx-cli-setup@main
        
      - name: Salesforce Org Login
        uses: svierk/sfdx-login@main
        with:
          sfdx-url: ${{ secrets.SFDX_AUTH_URL }}
    
      - name: Package Installation
        uses: svierk/sfdx-package-installation@main
        with:
          packages: "['04t6S000001UjutQAC','04t3y000000X0OaAAK']"
          wait: 30
          publish-wait: 20

If the packages you want to install are key-protected, you can simply append the required installation key for each package with an underscore, e.g. '04t6S000001UjutQAC_INSTALLATIONKEY'.

The following actions were also used in the example workflow to create the prerequisites for the package installation:

  • Get Node Version | Pulls Node.js version to be used from the package.json of the project
  • SFDX CLI Setup | Installs the Salesforce CLI and related plugins
  • SFDX Login | Handles Salesforce login using a Salesforce DX authorization URL

Of course, the package installation action can be used flexibly and the respective approach can vary.

Releases

Latest release notes can be found on the release page.

License

The scripts and documentation in this project are released under the MIT License.

sfdx-package-installation's People

Contributors

svierk avatar

Stargazers

ivan kondratiuk avatar Karol Sitkowski avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.