Skip to content
Github Actions for yarn
Branch: master
Clone or download
clarkdo Merge pull request #3 from maniator/patch-1
Copy over code from the npm action to allow for npm_auth_token to work
Latest commit 97f98f2 Feb 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update main.workflow Dec 20, 2018
script init repo Dec 20, 2018
test yarn in test is executable Dec 20, 2018
.dockerignore chore: add dockerignore Dec 20, 2018
.gitignore Initial commit Dec 20, 2018
Brewfile init repo Dec 20, 2018
Dockerfile feat: change from node:11-slim to node:11 Feb 3, 2019
LICENSE feat: add bin Dec 20, 2018
README.md doc: update readme Dec 20, 2018
entrypoint.sh Update entrypoint.sh Feb 4, 2019

README.md

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"
}
You can’t perform that action at this time.