GithubHelp home page GithubHelp logo

significa / actions Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 0.0 101 KB

Reusable GitHub actions workflows used at Significa. (Nonstable, under development)

Home Page: https://significa.co

License: MIT License

github-actions reusable-workflows

actions's Introduction

Shared GitHub actions workflows used by Significa

Reusable GitHub actions workflows.

Available actions

Test and publish elixir library

.github/workflows/elixir-library.yaml

This reusable action tests an Elixir library with mix test, using all the supported Elixir and OTP versions.

Usage:

test-and-publish:
  name: Test and publish
  uses: significa/actions/.github/workflows/elixir-library.yaml@main
  secrets:
    HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

Inputs:

  • publish-to-hex: true to publish package to Hex package manager. Defaults to true.
  • replace-mix-version: true to replace the version placeholder (0.0.1-development) in mix.exs before publishing. Defaults to true.

Secrets:

  • HEX_API_KEY: Hex package manager api key. More details in Publishing a package. Required if publish-to-hex is true.

Test and publish am NPM Library

.github/workflows/npm-library.yaml

This action builds tests and publishes an NPM library. Both to private and public NPM registries (configurable).

Usage:

test-and-publish:
  name: Test and publish
  uses: significa/actions/.github/workflows/npm-library.yaml@main
  permissions:
    contents: read
    packages: write

Inputs:

  • node_versions
  • install_command
  • lint_command
  • build_command
  • test_command
  • npm_scope
  • install_registry_url
  • publish_to_github_registry
  • publish_to_npm_registry

Secrets:

  • NPM_TOKEN

If publishing to NPM publish_to_npm_registry, make sure that:

  • public is either not set OR set to false.
  • publishConfig.access is set to public.
    {
      "publishConfig": {
        "access": "public"
      }
    }
  • publishConfig does not define a registry override for your scope.

Build and deploy a Vercel app

.github/workflows/vercel-app.yaml

This reusable action builds, tests and deploys an application to Vercel.

Requires a vercel.json and .nvmrc in the source repository.

Usage:

ci-cd:
  name: CI/CD
  permissions:
    contents: read
    packages: read
    deployments: write
  uses: significa/actions/.github/workflows/vercel-app.yaml@main
  with:
    npm_scope: '@significa'
  secrets:
    VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
    VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
    VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

Inputs:

  • install_command
  • lint_command
  • test_command
  • npm_scope
  • install_registry_url
  • ref_name_to_vercel_environment

Secrets:

  • VERCEL_TOKEN
  • VERCEL_ORG_ID
  • VERCEL_PROJECT_ID

actions's People

Contributors

pdrbrnd avatar tofran avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.