mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-21 23:59:26 +08:00
Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d8ce577a6f | |||
| 924bcea8f0 | |||
| 44293a387e | |||
| 1f7c6fbe9c | |||
| f6e2aecf62 | |||
| 5b0b86cdda | |||
| 6207ca676f | |||
| 3eab1c9435 | |||
| f24ed466bd | |||
| c33f8306f2 | |||
| 4ac8b9d200 | |||
| 4965e1a0f0 | |||
| 2c3d31468d | |||
| 045276f30a | |||
| b7482b5362 | |||
| 729ea4ad03 | |||
| 3a3b5a57de | |||
| fb4aea7299 | |||
| 3dce3af319 | |||
| 57dd002262 | |||
| 1e151b00df | |||
| 58112cebd4 | |||
| 496d83e0ee | |||
| 4d9b2c0dc6 | |||
| b7233e8545 | |||
| a39c5ddbda | |||
| 6d5252c0b8 | |||
| e0c8d84b6e | |||
| 4e4261c59f |
@@ -1,5 +1,13 @@
|
||||
# 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)
|
||||
|
||||
- Migrated to the latest Github Action syntax
|
||||
|
||||
+3
-1
@@ -1,5 +1,7 @@
|
||||
FROM node:10.16-alpine
|
||||
FROM node:lts-alpine
|
||||
|
||||
RUN apk add --no-cache git python3 build-base
|
||||
RUN npm i -g --force yarn
|
||||
COPY "entrypoint.sh" "/entrypoint.sh"
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["help"]
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
# GitHub Actions for Yarn
|
||||
|
||||
> Look https://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.
|
||||
|
||||
> **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
|
||||
|
||||
An example workflow how to install packages via Yarn (using repository syntax):
|
||||
@@ -16,10 +19,16 @@ jobs:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: borales/actions-yarn@2.0.0
|
||||
- uses: actions/checkout@v2
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
cmd: install
|
||||
cmd: install # will run `yarn install` command
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
cmd: build # will run `yarn build` command
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
cmd: test # will run `yarn test` command
|
||||
```
|
||||
|
||||
> `cmd` value will be used as a command for Yarn
|
||||
@@ -38,7 +47,7 @@ jobs:
|
||||
To authenticate with, and publish to, a registry other than `registry.npmjs.org`:
|
||||
|
||||
```yml
|
||||
- uses: borales/actions-yarn@2.0.0
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
auth-token: ${{ secrets.NPM_TOKEN }}
|
||||
registry-url: someOtherRegistry.someDomain.net
|
||||
|
||||
+3
-3
@@ -4,9 +4,9 @@ set -e
|
||||
|
||||
if [ -n "$NPM_AUTH_TOKEN" ]; then
|
||||
# Respect NPM_CONFIG_USERCONFIG if it is provided, default to $HOME/.npmrc
|
||||
NPM_CONFIG_USERCONFIG="${NPM_CONFIG_USERCONFIG-"$HOME/.npmrc"}"
|
||||
NPM_REGISTRY_URL="${NPM_REGISTRY_URL-registry.npmjs.org}"
|
||||
NPM_STRICT_SSL="${NPM_STRICT_SSL-true}"
|
||||
NPM_CONFIG_USERCONFIG="${NPM_CONFIG_USERCONFIG:-"$HOME/.npmrc"}"
|
||||
NPM_REGISTRY_URL="${NPM_REGISTRY_URL:-registry.npmjs.org}"
|
||||
NPM_STRICT_SSL="${NPM_STRICT_SSL:-true}"
|
||||
NPM_REGISTRY_SCHEME="https"
|
||||
if ! $NPM_STRICT_SSL
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user