Skip to content

Commit 3d098fb

Browse files
committed
[ADD] ci to npm package
1 parent c6b1cca commit 3d098fb

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/npm-publish.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,21 @@ jobs:
1313
with:
1414
node-version: 14.x
1515
- run: npm ci
16-
# - run: npm run build
17-
# - run: npm run lint
18-
# - run: npm test
1916

20-
# publish-npm:
21-
# needs: build
22-
# runs-on: ubuntu-latest
23-
# steps:
24-
# - uses: actions/checkout@v1
25-
# - uses: actions/setup-node@v1
26-
# with:
27-
# node-version: 12
28-
# registry-url: https://registry.npmjs.org/
29-
# - run: npm ci
30-
# - run: npm publish --access public
31-
# env:
32-
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
17+
18+
publish-npm:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v1
23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: 14.x
26+
registry-url: https://registry.npmjs.org/
27+
- run: npm ci
28+
- run: npm publish --access public
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3331

3432
publish-gpr:
3533
needs: build

0 commit comments

Comments
 (0)