Skip to content

Commit 7b9a032

Browse files
committed
Refactor publish.yml workflow to include npm publish command
1 parent 97ff9d4 commit 7b9a032

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: CI/CD
22

33
on:
44
push:
@@ -23,3 +23,8 @@ jobs:
2323

2424
- name: Run linting and build
2525
run: npm run lint && npm run build
26+
27+
- name: Publish to NPM registry
28+
run: |
29+
echo "//registry.npmjs.org/:_authToken=\${{ secrets.NPM_TOKEN }}" > .npmrc
30+
npm publish

0 commit comments

Comments
 (0)