mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-04-15 02:52:16 +08:00
Updating CHANGELOG and README
This commit is contained in:
parent
84bafda24c
commit
a162e275b0
@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2.0.0 (14 Oct 2019)
|
||||||
|
|
||||||
|
- Migrated to the latest Github Action syntax
|
||||||
|
|
||||||
## 1.1.0 (22 Apr 2019)
|
## 1.1.0 (22 Apr 2019)
|
||||||
|
|
||||||
- Docker now uses the full image `node:10` and `entrypoint.sh` accepts extra NPM settings (thanks to [@Embraser01](https://github.com/Embraser01))
|
- Docker now uses the full image `node:10` and `entrypoint.sh` accepts extra NPM settings (thanks to [@Embraser01](https://github.com/Embraser01))
|
||||||
|
|||||||
37
README.md
37
README.md
@ -6,31 +6,20 @@ This Action for [yarn](https://yarnpkg.com) enables arbitrary actions with the `
|
|||||||
|
|
||||||
## Usage
|
## 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
|
```yml
|
||||||
workflow "Build, Test, and Publish" {
|
name: CI
|
||||||
on = "push"
|
on: [push]
|
||||||
resolves = ["Publish"]
|
jobs:
|
||||||
}
|
build:
|
||||||
|
name: Test
|
||||||
action "Build" {
|
runs-on: ubuntu-latest
|
||||||
uses = "Borales/actions-yarn@master"
|
steps:
|
||||||
args = "install"
|
- uses: actions/checkout@v1
|
||||||
}
|
- uses: borales/actions-yarn@2.0.0
|
||||||
|
with:
|
||||||
action "Test" {
|
cmd: install
|
||||||
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"]
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Secrets
|
### Secrets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user