Skip to content

Commit 882fd2e

Browse files
committed
Add npm publish workflow
1 parent 272883c commit 882fd2e

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/dockerhub.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
id: meta
2323
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
2424
with:
25-
images: my-docker-hub-namespace/my-docker-hub-repository
26-
25+
images: wholebuzz/mapreduce
26+
2727
- name: Build and push Docker image
2828
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
2929
with:

.github/workflows/npm.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish NPM package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 14
15+
- run: yarn
16+
- run: yarn test
17+
- uses: JS-DevTools/npm-publish@v1
18+
with:
19+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)