Skip to content

Commit df28dae

Browse files
committed
ci: update release workflow for automated npm and github packages publishing
1 parent e65d8b0 commit df28dae

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ jobs:
4747
env:
4848
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4949

50+
- name: Publish Package to NPM Registry
51+
run: |
52+
if [ -n "${{ secrets.NPM_TOKEN }}" ]; then
53+
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
54+
cd apps/cli && npm publish --access public
55+
else
56+
echo "NPM_TOKEN secret not set in repository secrets."
57+
fi
58+
env:
59+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
60+
5061
- name: Extract Changelog Entry
5162
id: changelog
5263
run: |

‎apps/cli/package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"name": "collagility",
33
"version": "0.1.1",
44
"publishConfig": {
5-
"access": "public",
6-
"registry": "https://registry.npmjs.org/"
5+
"access": "public"
76
},
87
"description": "Terminal CLI application for Collagility host and participant sessions",
98
"type": "module",

0 commit comments

Comments
 (0)