Skip to content

Commit 6f1288a

Browse files
RudyWeberchadcarlson
andauthored
Merge pull request #19 from platformsh/gh-actions
GH actions Co-authored-by: chadcarlson <chad.carlson@platform.sh>
2 parents 383c3e0 + 232b758 commit 6f1288a

4 files changed

Lines changed: 53 additions & 1 deletion

File tree

.github/workflows/npm-publish.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Publish (npm)
3+
on:
4+
push: ~
5+
6+
jobs:
7+
deploy:
8+
name: Publish to npm
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '10.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm install
17+
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
run: npm publish
21+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Quality Assurance
3+
on:
4+
push: ~
5+
pull_request: ~
6+
7+
jobs:
8+
build:
9+
name: '[Build/test] Node.js ${{ matrix.nodejs }}'
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
nodejs: [ '10', '12', '14' ]
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.nodejs }}
19+
- run: npm install
20+
- run: npm run build --if-present
21+
- run: npm test

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
# Changelog
22

3-
## [2.4.0] - 2020-11-17
3+
## [2.4.0] - 2021-02-03
44

55
### Added
66

7+
* GitHub actions for tests (`quality-assurance.yaml`) and publishing to npm (`npm-publish.yaml`).
8+
9+
### Changed
10+
711
* `config` method can now get an object `{ varPrefix: string }` to specify a different environment variables prefix.
812

13+
### Removed
14+
15+
* CircleCI action config.
16+
917
## [2.3.1] - 2019-11-04
1018

1119
### Added

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Platform.sh Config Reader (Node.js)
22

3+
![Quality Assurance](https://github.com/platformsh/config-reader-nodejs/workflows/Quality%20Assurance/badge.svg)
4+
35
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.
46

57
This library requires Node.js 10 or later.

0 commit comments

Comments
 (0)