Skip to content

Commit 94d36dc

Browse files
publish to npm
1 parent bdd2cfa commit 94d36dc

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,8 @@ jobs:
3030
- name: Run LKG build
3131
run: npx hereby LKG
3232

33-
- name: Commit built files
34-
if: success() # Only commit if the previous steps were successful
35-
run: |
36-
git config --global user.name "github-actions[bot]"
37-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
38-
git add lib
39-
git commit -m "Add built files" || echo "No changes to commit"
40-
41-
- name: Push changes
42-
if: success() # Only push if the previous steps were successful
43-
env:
44-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
45-
run: |
46-
git push origin main
33+
- name: Publish to npm
34+
if: success() # Only publish if the previous steps were successful
35+
run: |
36+
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
37+
npm publish --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "typescript",
2+
"name": "@isopodlabs/typescript",
33
"author": "Microsoft Corp.",
44
"homepage": "https://www.typescriptlang.org/",
55
"version": "5.8.0",

0 commit comments

Comments
 (0)