All Projects → nuxt → actions-yarn

nuxt / actions-yarn

Licence: MIT license
Github Actions for yarn

Programming Languages

shell
77523 projects
Dockerfile
14818 projects
ruby
36898 projects - #4 most used programming language

GitHub Action for Yarn

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 = "nuxt/actions-yarn@master"
  args = "install"
}

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

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

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

Node Versions

Specify different branch name in uses to leverage node version.

action "Build" {
  uses = "nuxt/actions-yarn@node-11"
  args = "install"
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].