Skip to content

Commit 9e0e1e7

Browse files
committed
Fix "npm show" execution
1 parent edeabfb commit 9e0e1e7

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

.github/workflows/npm-publish-github-packages.yml

+10-9
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,16 @@ jobs:
1010
package_publishing:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
contents: read
1413
packages: write
15-
id-token: write
1614
env:
1715
ACTIONS_STEP_DEBUG: true
18-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1916
steps:
2017
- uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0
2318

2419
- uses: actions/setup-node@v4
2520
with:
2621
node-version: '20.x'
2722
registry-url: 'https://npm.pkg.github.com'
28-
scope: '@salemove'
2923

3024
- name: Authenticate to GitHub Packages
3125
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
@@ -35,6 +29,13 @@ jobs:
3529

3630
- run: npm ci
3731

38-
# Publishing packages
39-
- run: npm pkg set version='${{ github.event.inputs.version }}'
40-
- run: npm publish --tag stable
32+
- name: Create dist folder
33+
run: npm run build
34+
35+
- name: Set package version
36+
run: npm pkg set version='${{ github.event.inputs.version }}'
37+
38+
- name: Publishing packages
39+
run: npm publish --@salemove:registry=https://npm.pkg.github.com/
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
@salemove:registry=https://npm.pkg.github.com/

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@
2222
"url": "git+https://github.com/salemove/widgets_sdk_ionic"
2323
},
2424
"publishConfig": {
25-
"registry": "https://npm.pkg.github.com"
25+
"registry": "https://npm.pkg.github.com",
26+
"access": "public"
2627
},
2728
"bugs": {
2829
"url": "https://github.com/salemove/ios-sdk-widgets/issues"
2930
},
3031
"keywords": [
31-
"capacitor",
32-
"plugin",
33-
"native"
32+
"Glia",
33+
"GliaWidgets",
34+
"GliaWidgetsSDK"
3435
],
3536
"scripts": {
3637
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",

0 commit comments

Comments
 (0)