mirror of
https://github.com/Borales/actions-yarn.git
synced 2026-06-21 23:59:26 +08:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d8ce577a6f | |||
| 924bcea8f0 | |||
| 44293a387e | |||
| 1f7c6fbe9c | |||
| f6e2aecf62 | |||
| 5b0b86cdda | |||
| 6207ca676f | |||
| 3eab1c9435 | |||
| f24ed466bd | |||
| c33f8306f2 | |||
| 4ac8b9d200 |
+1
-1
@@ -1,6 +1,6 @@
|
||||
FROM node:lts-alpine
|
||||
|
||||
RUN apk add --no-cache git python2 build-base
|
||||
RUN apk add --no-cache git python3 build-base
|
||||
RUN npm i -g --force yarn
|
||||
COPY "entrypoint.sh" "/entrypoint.sh"
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# 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.
|
||||
|
||||
@@ -19,14 +19,14 @@ jobs:
|
||||
name: Test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: borales/actions-yarn@v2.0.0
|
||||
- uses: actions/checkout@v2
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
cmd: install # will run `yarn install` command
|
||||
- uses: borales/actions-yarn@v2.0.0
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
cmd: build # will run `yarn build` command
|
||||
- uses: borales/actions-yarn@v2.0.0
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
cmd: test # will run `yarn test` command
|
||||
```
|
||||
@@ -47,7 +47,7 @@ jobs:
|
||||
To authenticate with, and publish to, a registry other than `registry.npmjs.org`:
|
||||
|
||||
```yml
|
||||
- uses: borales/actions-yarn@v2.0.0
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
auth-token: ${{ secrets.NPM_TOKEN }}
|
||||
registry-url: someOtherRegistry.someDomain.net
|
||||
|
||||
Reference in New Issue
Block a user