Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Publish (npm)
on:
push: ~

jobs:
deploy:
name: Publish to npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '10.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish

21 changes: 21 additions & 0 deletions .github/workflows/quality-assurance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Quality Assurance
on:
push: ~
pull_request: ~

jobs:
build:
name: '[Build/test] Node.js ${{ matrix.nodejs }}'
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [ '10', '12', '14' ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs }}
- run: npm install
- run: npm run build --if-present
- run: npm test
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# Changelog

## [2.4.0] - 2020-11-17
## [2.4.0] - 2021-02-03

### Added

* GitHub actions for tests (`quality-assurance.yaml`) and publishing to npm (`npm-publish.yaml`).

### Changed

* `config` method can now get an object `{ varPrefix: string }` to specify a different environment variables prefix.

### Removed

* CircleCI action config.

## [2.3.1] - 2019-11-04

### Added
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Platform.sh Config Reader (Node.js)

![Quality Assurance](https://github.com/platformsh/config-reader-nodejs/workflows/Quality%20Assurance/badge.svg)

This library provides a streamlined and easy to use way to interact with a Platform.sh environment. It offers utility methods to access routes and relationships more cleanly than reading the raw environment variables yourself.

This library requires Node.js 10 or later.
Expand Down