GithubHelp home page GithubHelp logo

semantic-release-expo-github-action's Introduction

Expo - Semantic Release for GitHub Actions

GitHub actions for byCedric/semantic-release-expo

Sample configuration

You can use the sample configuration below to:

  • Generate release notes
  • Prepare a CHANGELOG.md
  • Update the version in package.json and app.json
  • Publish a release to Github

Start by adding the semantic-release plugins:

yarn add @semantic-release/changelog @semantic-release/git @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator -D

Next, add the configuration to your package.json:

  "release": {
    "verifyConditions": [
      "semantic-release-expo",
      "@semantic-release/changelog",
      "@semantic-release/git",
      "@semantic-release/github",
      "@semantic-release/npm"
    ],
    "generateNotes": [
      "@semantic-release/release-notes-generator"
    ],
    "prepare": [
      "semantic-release-expo",
      "@semantic-release/changelog",
      "@semantic-release/npm",
      {
        "path": "@semantic-release/git",
        "assets": [
          "CHANGELOG.md",
          "package.json",
          "package-lock.json",
          "app.json"
        ]
      }
    ],
    "publish": [
      "@semantic-release/github"
    ],
    "success": false,
    "fail": false
  },

Finally, in your main.workflow, add this action:

action "semantic-release" {
  uses = "mgibeau/semantic-release-expo-github-action"
  secrets = ["GITHUB_TOKEN"]
}

Environment variables

Most semantic-release plugins support configuration through environment variables.

Secrets

If you plan to use @semantic-release/git or @semantic-release/github, make sure that you are using GITHUB_TOKEN.

Other authentication methods can also be defined using secrets.

Required arguments

N/A

Optional arguments

N/A

semantic-release-expo-github-action's People

Contributors

mgibeau avatar

Stargazers

Gustavo Bertoi avatar Jimmy Briggs avatar Patrick Howard avatar Paul Catalan avatar Tim Kersey avatar Aidan Kinzett avatar Damien Senger avatar Ahmed Rebai avatar Alin Stefan Olaru avatar

Watchers

 avatar Gustavo Bertoi avatar

Forkers

hkraftno

semantic-release-expo-github-action's Issues

Can this be integrated with a Circle CI workflow?

Hi @mgibeau this looks very cool. One of my questions is if I already have a Circle CI workflow - which I use for deplying to testflight etc. Can this work with it.

For example can I commit -> increase all the versions -> deploy to circle ci

Missing dependency ?

Hi,

I'm using this GitHub Action, but it leads to an error: Cannot find module '@semantic-release/error'. I don't know if it comes from the action or my configuration.
Here is my workflow file:

name: Handle expo build
on:
  push:
    branches: [next, master]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Setup Node.js
        uses: actions/setup-node@v1
        with:
          node-version: 12

      - name: Expo Semantic Release
        uses: mgibeau/[email protected]
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

    ...

Am I missing something ?

Thanks for your help.

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.