mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-25 01:29:26 +08:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 045276f30a | |||
| b7482b5362 | |||
| 729ea4ad03 | |||
| 3a3b5a57de | |||
| fb4aea7299 | |||
| 3dce3af319 | |||
| 57dd002262 | |||
| 1e151b00df | |||
| 58112cebd4 | |||
| 496d83e0ee | |||
| 4d9b2c0dc6 | |||
| b7233e8545 | |||
| a39c5ddbda |
@@ -1,5 +1,13 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2.1.0 (8 Nov 2019)
|
||||||
|
|
||||||
|
- Switching to `node:lts` docker image
|
||||||
|
|
||||||
|
## 2.0.2 (6 Nov 2019)
|
||||||
|
|
||||||
|
- Added Git to the Docker image
|
||||||
|
|
||||||
## 2.0.0 (14 Oct 2019)
|
## 2.0.0 (14 Oct 2019)
|
||||||
|
|
||||||
- Migrated to the latest Github Action syntax
|
- Migrated to the latest Github Action syntax
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
FROM node:10.16-alpine
|
FROM node:lts-alpine
|
||||||
|
|
||||||
|
RUN apk add --no-cache git python2 build-base yarn
|
||||||
COPY "entrypoint.sh" "/entrypoint.sh"
|
COPY "entrypoint.sh" "/entrypoint.sh"
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["help"]
|
CMD ["help"]
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
# GitHub Actions for Yarn
|
# GitHub Actions for Yarn
|
||||||
|
|
||||||
> Look https://github.com/actions/npm for more details.
|
> Look [https://github.com/actions/npm](github.com/actions/npm) for more details.
|
||||||
|
|
||||||
This Action for [yarn](https://yarnpkg.com) enables arbitrary actions with the `yarn` command-line client, including testing packages and publishing to a registry.
|
This Action for [yarn](https://yarnpkg.com) enables arbitrary actions with the `yarn` command-line client, including testing packages and publishing to a registry.
|
||||||
|
|
||||||
|
> **Please keep in mind** that this Action was originally written for GitHub Actions beta (when Docker was the only way of doing things).
|
||||||
|
Consider using [actions/setup-node](https://github.com/actions/setup-node) to work with Yarn. This repository will be mostly supporting the existing flows.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
An example workflow how to install packages via Yarn (using repository syntax):
|
An example workflow how to install packages via Yarn (using repository syntax):
|
||||||
@@ -19,7 +22,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: borales/actions-yarn@v2.0.0
|
- uses: borales/actions-yarn@v2.0.0
|
||||||
with:
|
with:
|
||||||
cmd: install
|
cmd: install # will run `yarn install` command
|
||||||
|
- uses: borales/actions-yarn@v2.0.0
|
||||||
|
with:
|
||||||
|
cmd: build # will run `yarn build` command
|
||||||
|
- uses: borales/actions-yarn@v2.0.0
|
||||||
|
with:
|
||||||
|
cmd: test # will run `yarn test` command
|
||||||
```
|
```
|
||||||
|
|
||||||
> `cmd` value will be used as a command for Yarn
|
> `cmd` value will be used as a command for Yarn
|
||||||
|
|||||||
Reference in New Issue
Block a user