Skip to content
This repository was archived by the owner on Jun 18, 2022. It is now read-only.

Commit 33b546e

Browse files
committed
2 parents 99872b4 + ba74c0e commit 33b546e

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Node.js Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
publish-npm:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: 12
18+
registry-url: https://registry.npmjs.org/
19+
- run: npm ci
20+
- run: npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
23+
24+
publish-gpr:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: 12
31+
registry-url: https://npm.pkg.github.com/
32+
- run: npm ci
33+
- run: npm publish
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[![Node.js Package](https://github.com/doing-things-with-node-red/node-red-context-configservice/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/doing-things-with-node-red/node-red-context-configservice/actions/workflows/npm-publish.yml)
12
# node-red-context-configservice
23
[Spring Cloud Config](https://cloud.spring.io/spring-cloud-config/reference/html/#_spring_cloud_config_server) provides server-side for externalized configuration in a distributed system. You have a central place to manage external properties for applications across all environments.
34

@@ -35,4 +36,4 @@ contextStorage: {
3536

3637
## Compose
3738
We are using Docker Compose to test our e2e
38-
![Alt Text](assets/configservice.gif)
39+
![Alt Text](assets/configservice.gif)

0 commit comments

Comments
 (0)