-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish library as NPM package (#43)
Signed-off-by: Montse Ortega <[email protected]>
- Loading branch information
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|