mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-24 00:59:29 +08:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fdf0082f89 | |||
| 1937fedd35 | |||
| 9bec063cfa | |||
| d8ce577a6f | |||
| 924bcea8f0 | |||
| 44293a387e | |||
| 1f7c6fbe9c | |||
| f6e2aecf62 | |||
| 5b0b86cdda | |||
| 6207ca676f | |||
| 3eab1c9435 | |||
| f24ed466bd | |||
| c33f8306f2 | |||
| 4ac8b9d200 | |||
| 4965e1a0f0 | |||
| 2c3d31468d | |||
| 045276f30a | |||
| b7482b5362 | |||
| 729ea4ad03 | |||
| 3a3b5a57de | |||
| fb4aea7299 | |||
| 3dce3af319 |
@@ -1,5 +1,9 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 3.0.0 (8 Jun 2022)
|
||||||
|
|
||||||
|
- Migrating to Python3 (thanks to [@richard-chim](https://github.com/richard-chim))
|
||||||
|
|
||||||
## 2.1.0 (8 Nov 2019)
|
## 2.1.0 (8 Nov 2019)
|
||||||
|
|
||||||
- Switching to `node:lts` docker image
|
- Switching to `node:lts` docker image
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git python3 build-base
|
||||||
|
RUN npm i -g --force 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](github.com/actions/npm) for more details.
|
> Look [github.com/actions/setup-node](https://github.com/actions/setup-node) 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):
|
||||||
@@ -16,14 +19,14 @@ jobs:
|
|||||||
name: Test
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: borales/actions-yarn@v2.0.0
|
- uses: borales/actions-yarn@v3.0.0
|
||||||
with:
|
with:
|
||||||
cmd: install # will run `yarn install` command
|
cmd: install # will run `yarn install` command
|
||||||
- uses: borales/actions-yarn@v2.0.0
|
- uses: borales/actions-yarn@v3.0.0
|
||||||
with:
|
with:
|
||||||
cmd: build # will run `yarn build` command
|
cmd: build # will run `yarn build` command
|
||||||
- uses: borales/actions-yarn@v2.0.0
|
- uses: borales/actions-yarn@v3.0.0
|
||||||
with:
|
with:
|
||||||
cmd: test # will run `yarn test` command
|
cmd: test # will run `yarn test` command
|
||||||
```
|
```
|
||||||
@@ -44,7 +47,7 @@ jobs:
|
|||||||
To authenticate with, and publish to, a registry other than `registry.npmjs.org`:
|
To authenticate with, and publish to, a registry other than `registry.npmjs.org`:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
- uses: borales/actions-yarn@v2.0.0
|
- uses: borales/actions-yarn@v3.0.0
|
||||||
with:
|
with:
|
||||||
auth-token: ${{ secrets.NPM_TOKEN }}
|
auth-token: ${{ secrets.NPM_TOKEN }}
|
||||||
registry-url: someOtherRegistry.someDomain.net
|
registry-url: someOtherRegistry.someDomain.net
|
||||||
|
|||||||
Reference in New Issue
Block a user