mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-27 19:19:27 +08:00
Updating CHANGELOG and README
This commit is contained in:
@@ -6,31 +6,20 @@ This Action for [yarn](https://yarnpkg.com) enables arbitrary actions with the `
|
||||
|
||||
## Usage
|
||||
|
||||
An example workflow to build, test, and publish an npm package to the default public registry follows:
|
||||
An example workflow how to install packages via Yarn (using repository syntax):
|
||||
|
||||
```hcl
|
||||
workflow "Build, Test, and Publish" {
|
||||
on = "push"
|
||||
resolves = ["Publish"]
|
||||
}
|
||||
|
||||
action "Build" {
|
||||
uses = "Borales/actions-yarn@master"
|
||||
args = "install"
|
||||
}
|
||||
|
||||
action "Test" {
|
||||
needs = "Build"
|
||||
uses = "Borales/actions-yarn@master"
|
||||
args = "test"
|
||||
}
|
||||
|
||||
action "Publish" {
|
||||
needs = "Test"
|
||||
uses = "Borales/actions-yarn@master"
|
||||
args = "publish --access public"
|
||||
secrets = ["NPM_AUTH_TOKEN"]
|
||||
}
|
||||
```yml
|
||||
name: CI
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: borales/actions-yarn@2.0.0
|
||||
with:
|
||||
cmd: install
|
||||
```
|
||||
|
||||
### Secrets
|
||||
|
||||
Reference in New Issue
Block a user