https://github.com/nuxt/actions-yarn
Github Actions for yarn
https://github.com/nuxt/actions-yarn
Last synced: 9 months ago
JSON representation
Github Actions for yarn
- Host: GitHub
- URL: https://github.com/nuxt/actions-yarn
- Owner: nuxt
- License: mit
- Created: 2018-12-20T10:21:26.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-03T15:02:30.000Z (10 months ago)
- Last Synced: 2025-03-24T09:31:23.292Z (10 months ago)
- Language: Shell
- Size: 15.6 KB
- Stars: 48
- Watchers: 4
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action for Yarn
This Action for [yarn](https://yarnpkg.com/en/) 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:
```hcl
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.
```hcl
action "Build" {
uses = "nuxt/actions-yarn@node-11"
args = "install"
}
```