Compare commits

...

10 Commits

Author SHA1 Message Date
Oleksandr Bordun 57dd002262 Update CHANGELOG.md 2019-11-08 16:43:41 +01:00
Oleksandr Bordun 1e151b00df Update Dockerfile 2019-11-08 16:43:05 +01:00
Oleksandr Bordun 58112cebd4 Update CHANGELOG.md 2019-11-06 18:00:16 +01:00
Oleksandr Bordun 496d83e0ee Update CHANGELOG.md 2019-11-06 17:59:38 +01:00
Oleksandr Bordun 4d9b2c0dc6 Installing Git 2019-11-06 17:59:03 +01:00
Borales b7233e8545 Updating README 2019-10-21 19:57:29 +02:00
Borales a39c5ddbda Updating README 2019-10-21 19:56:30 +02:00
Oleksandr Bordun 6d5252c0b8 Merge pull request #10 from ardeois/master
fix .npmrc file generation
2019-10-15 20:43:14 +02:00
Corentin Ardeois e0c8d84b6e fix .npmrc file generation
When we pass an `auth-token`, a `.npmrc` file is generated but it's value could be invalid
The parameter substitution to set a default value on `NPM_` was not working.

Github action defines the `NPM_*` environment variables with a null value, but we were setting a default value only if the environment variable was not set at all.
2019-10-15 14:38:37 -04:00
Borales 4e4261c59f Fixing typo 2019-10-14 11:36:20 +02:00
4 changed files with 23 additions and 8 deletions
+8
View File
@@ -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
+2 -1
View File
@@ -1,5 +1,6 @@
FROM node:10.16-alpine
FROM node:lts-alpine
RUN apk add --no-cache git
COPY "entrypoint.sh" "/entrypoint.sh"
ENTRYPOINT ["/entrypoint.sh"]
CMD ["help"]
+10 -4
View File
@@ -1,6 +1,6 @@
# 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.
@@ -17,9 +17,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: borales/actions-yarn@2.0.0
- uses: borales/actions-yarn@v2.0.0
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
@@ -38,7 +44,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.0.0
with:
auth-token: ${{ secrets.NPM_TOKEN }}
registry-url: someOtherRegistry.someDomain.net
+3 -3
View File
@@ -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