Skip to content

Commit ad5b177

Browse files
committed
Changed from GItHub package to NPM package for publishing
1 parent 53a8bff commit ad5b177

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/release-package.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ jobs:
1212
- uses: actions/setup-node@v3
1313
with:
1414
node-version: latest
15-
- run: node -v
1615
- run: npm ci
1716
- run: npm test
1817

19-
publish-gpr:
18+
publish-node:
2019
needs: build
2120
runs-on: ubuntu-latest
2221
permissions:
@@ -27,8 +26,8 @@ jobs:
2726
- uses: actions/setup-node@v3
2827
with:
2928
node-version: latest
30-
registry-url: https://npm.pkg.github.com/
29+
registry-url: https://registry.npmjs.org
3130
- run: npm ci
3231
- run: npm publish
3332
env:
34-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
33+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
engine-strict=true
2-
@emamid:registry=https://npm.pkg.github.com
1+
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
2+
registry=https://registry.npmjs.org/
3+
always-auth=true

0 commit comments

Comments
 (0)