Skip to content

Commit

Permalink
Publish library as NPM package (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: Montse Ortega <[email protected]>
  • Loading branch information
ammont82 authored Nov 19, 2024
1 parent 54bd093 commit a2950ae
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,24 @@ jobs:
curl -s -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/gzip" \
--data-binary @apps/agent/dist/agent-latest.tgz \
"${upload_url}?name=agent-latest.tgz"
"${upload_url}?name=agent-latest.tgz"
publish-to-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Enable Corepack
run: |
corepack enable
corepack prepare [email protected] --activate
- name: Publish to NPM
run: npm ci
run: npm run build
run: npm publish

0 comments on commit a2950ae

Please sign in to comment.