Skip to content

Commit 613dc14

Browse files
[1.x] Fixes workflow
1 parent d77e89e commit 613dc14

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

.github/workflows/publish.yaml

+1-14
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,6 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16-
- name: Update package.json version
17-
run: |
18-
# Extract the version from the release tag
19-
VERSION=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///')
20-
# Update package.json with the extracted version
21-
npm version "$VERSION"
22-
# Commit the updated package.json
23-
git commit -m "Update package.json version to $VERSION" package.json
24-
# Push the changes
25-
git push origin HEAD
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
2916
- name: Set up Node.js
3017
uses: actions/setup-node@v4
3118
with:
@@ -38,6 +25,6 @@ jobs:
3825
run: npm run build
3926

4027
- name: Publish package to GitHub Packages
41-
run: npm publish --access public
28+
run: npm publish
4229
env:
4330
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@
44
"description": "The most simple WebAuthn (Passkeys) helper for browsers.",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/Laragear/webpass.git"
7+
"url": "git+https://github.com/Laragear/webpass.git"
88
},
99
"bugs": {
1010
"url": "https://github.com/Laragear/webpass/issues"
1111
},
12+
"publishConfig": {
13+
"registry": "https://npm.pkg.github.com"
14+
},
1215
"homepage": "https://github.com/Laragear/webpass",
1316
"main": "src/index.ts",
1417
"scripts": {
1518
"build": "rollup --config --sourcemap",
1619
"test": "vitest"
1720
},
1821
"sideEffects": false,
19-
"keywords": ["webauthn", "passkeys", "authentication", "auth", "security", "browser"],
22+
"keywords": [
23+
"webauthn",
24+
"passkeys",
25+
"authentication",
26+
"auth",
27+
"security",
28+
"browser"
29+
],
2030
"author": {
2131
"name": "Italo Israel Baeza Cabrera",
2232
"email": "[email protected]",

0 commit comments

Comments
 (0)