File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11# Platform.sh Config Reader (Node.js)
22
3+ ![ Quality Assurance] ( https://github.com/platformsh/config-reader-nodejs/workflows/Quality%20Assurance/badge.svg )
4+
35This 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
57This library requires Node.js 10 or later.
You can’t perform that action at this time.
0 commit comments