Skip to content
package

GitHub Action

GitHub Action for Yarn + Cypress

1.0.0 Latest version

GitHub Action for Yarn + Cypress

package

GitHub Action for Yarn + Cypress

Wraps the yarn + cypress CLI's to enable common yarn + cy commands

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GitHub Action for Yarn + Cypress

uses: KingScooty/[email protected]

Learn more about this action in KingScooty/actions-yarn-cy

Choose a version

GitHub Action for Yarn + Cypress

This Action for yarn enables arbitrary actions with the yarn command-line client, including testing packages and publishing to a registry.

Usage

An example workflow to build, test, and publish an npm package to the default public registry follows:

workflow "Build, Test, and Publish" {
  on = "push"
  resolves = ["Publish"]
}

action "Build" {
  uses = "kingscooty/actions-yarn-cy@master"
  args = "install"
}

action "Test" {
  needs = "Build"
  uses = "kingscooty/actions-yarn-cy@master"
  args = "test"
}

# Filter for a new tag
action "Tag" {
  needs = "Test"
  uses = "actions/bin/filter@master"
  args = "tag"
}

action "Publish" {
  needs = "Tag"
  uses = "kingscooty/actions-yarn-cy@master"
  args = "publish --access public"
  secrets = ["NPM_AUTH_TOKEN"]
}