Skip to content

Commit dc0f78c

Browse files
committed
seperate artifacts from npm publish
Signed-off-by: Utkarsh Srivastava <[email protected]>
1 parent 4366b29 commit dc0f78c

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/workflows/nodejs.yml renamed to .github/workflows/artifacts.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Releases cross platform binaries for nodejs-snowflake and publishes to NPM
1+
name: Releases cross platform binaries for nodejs-snowflake
22

33
on:
44
push:
@@ -36,5 +36,4 @@ jobs:
3636
uses: JS-DevTools/npm-publish@v1
3737
with:
3838
token: ${{ secrets.NPM_TOKEN }}
39-
tag: ${GITHUB_REF##*/}
4039

.github/workflows/npm.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publishes to package to NPM
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Node.js
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 14.16.0
17+
- name: Install Dependencies
18+
run: npm ci
19+
20+
- name: Build NodeJS Snowflake
21+
run: npm run build
22+
23+
- name: Run Tests
24+
run: npm t
25+
26+
- name: Publish Package to NPM
27+
uses: JS-DevTools/npm-publish@v1
28+
with:
29+
token: ${{ secrets.NPM_TOKEN }}
30+

0 commit comments

Comments
 (0)