Skip to content

Commit 94d6e12

Browse files
update github action to publish to npm registry
1 parent f07ee25 commit 94d6e12

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Node SDK to GitHub Packages
1+
name: Publish Node SDK to npm
22

33
on:
44
workflow_dispatch:
@@ -8,22 +8,17 @@ jobs:
88
runs-on: ubuntu-latest
99
permissions:
1010
contents: read
11-
packages: write
1211
steps:
1312
- uses: actions/checkout@v4
1413
- uses: actions/setup-node@v4
1514
with:
1615
node-version: '20'
17-
registry-url: 'https://npm.pkg.github.com'
18-
scope: '@makeplane'
16+
registry-url: 'https://registry.npmjs.org'
1917

2018
- name: Install dependencies and build
2119
run: npm ci
2220

23-
- name: Configure npm for GitHub Packages
24-
run: npm config set @makeplane:registry https://npm.pkg.github.com
25-
26-
- name: Publish to GitHub Packages
27-
run: npm publish
21+
- name: Publish to npm
22+
run: npm publish --access public
2823
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)