Skip to content

Commit 005791a

Browse files
committed
Publish to npm
1 parent ba97cb5 commit 005791a

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/ci-typescript.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
uses: actions/setup-node@v4
1515
with:
1616
node-version: "latest"
17-
registry-url: https://npm.pkg.github.com/
18-
scope: "@blueye-robotics"
1917

2018
- name: Create tsconfig
2119
run: |
@@ -42,9 +40,6 @@ jobs:
4240
"main": "dist/index.js",
4341
"types": "dist/index.d.ts",
4442
"files": ["dist"],
45-
"publishConfig": {
46-
"registry": "https://npm.pkg.github.com/"
47-
},
4843
"scripts": {
4944
"build": "tsc"
5045
},
@@ -76,12 +71,12 @@ jobs:
7671
cd protobuf_definitions
7772
npm run build
7873
79-
- name: Publish to GitHub Packages
74+
- name: Publish to npm
8075
run: |
8176
cd protobuf_definitions
82-
npm publish --tag test
77+
npm publish --access public --tag test
8378
env:
84-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8580

8681
- name: Check npm pack contents
8782
run: |

0 commit comments

Comments
 (0)