Skip to content

Commit 33cb062

Browse files
committed
NPM package build
1 parent df7d78f commit 33cb062

File tree

9 files changed

+40
-179
lines changed

9 files changed

+40
-179
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/codecov-report.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/gpr-publish.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 12
15+
- run: npm ci
16+
- run: npm test
17+
18+
publish-gpr:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
permissions:
22+
packages: write
23+
contents: read
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-node@v3
27+
with:
28+
node-version: 12
29+
registry-url: https://npm.pkg.github.com/
30+
- run: npm ci
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/smoke.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
engine-strict=true
2+
@comet-ml:registry=https://npm.pkg.github.com

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"name": "comet-awesome-query-builder",
3-
"version": "0.0.3",
2+
"name": "@comet-ml:comet-react-query-builder",
3+
"version": "1.0.0",
4+
"publishConfig": {
5+
"registry":"https://npm.pkg.github.com"
6+
},
47
"description": "User-friendly query builder for React. Demo: https://ukrbublik.github.io/react-awesome-query-builder",
58
"keywords": [
69
"query-builder",
@@ -65,7 +68,7 @@
6568
},
6669
"repository": {
6770
"type": "git",
68-
"url": "https://github.com/caleb-kaiser/react-awesome-query-builder.git"
71+
"url": "git://github.com/comet-ml/comet-react-query-builder.git"
6972
},
7073
"author": "Caleb Kaiser <[email protected]>",
7174
"license": "MIT",

0 commit comments

Comments
 (0)