Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Commit a3c17f0

Browse files
author
Sujaykumar Hublikar
committed
Update workflow
1 parent 0bf094d commit a3c17f0

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches:
77
- main
8+
tags:
9+
- "*"
810
paths:
911
- 'package.json'
1012
- 'package-lock.json'
@@ -32,7 +34,7 @@ jobs:
3234
# Use nodejs
3335
- uses: actions/setup-node@v1
3436
with:
35-
node-version: 16
37+
node-version: '16.x'
3638

3739
# Install npm packages
3840
- run: npm install
@@ -45,4 +47,14 @@ jobs:
4547
uses: JS-DevTools/npm-publish@v1
4648
with:
4749
token: ${{ secrets.NPM_TOKEN }}
48-
access: "public"
50+
access: "public"
51+
check-version: true
52+
53+
# Publish to github npm
54+
- name: "📦 publish to github npm"
55+
uses: JS-DevTools/npm-publish@v1
56+
with:
57+
token: ${{ secrets.GITHUB_TOKEN }}
58+
access: "public"
59+
registry: "https://npm.pkg.github.com"
60+
check-version: true

0 commit comments

Comments
 (0)