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

Commit 1a7e6a8

Browse files
committed
build: add publish to npm registry
1 parent ed35446 commit 1a7e6a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,13 @@ jobs:
4040
asset_path: ${{ steps.create_package.outputs.name }}
4141
asset_name: ${{ steps.create_package.outputs.name }}
4242
asset_content_type: application/gzip
43+
44+
# Publish to NPM Registry
45+
- name: Publish to NPM Registry
46+
uses: actions/setup-node@v1
47+
run: npm publish
48+
with:
49+
node-version: 12.x
50+
registry-url: https://registry.npmjs.org
51+
env:
52+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)