Skip to content

Commit 086716e

Browse files
authored
Merge pull request #9 from Short-io/fix/publish-workflow
2 parents 7cd6641 + 083a78b commit 086716e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ name: Publish to npm
22

33
on:
44
release:
5-
types: [published]
5+
types: [created]
66

77
jobs:
88
publish:
9-
if: github.event.release.draft == false && github.event.release.prerelease == false
109
runs-on: ubuntu-latest
1110
permissions:
1211
contents: read
@@ -16,14 +15,12 @@ jobs:
1615

1716
- uses: actions/setup-node@v4
1817
with:
19-
node-version: 22
18+
node-version: 24
2019
registry-url: https://registry.npmjs.org
21-
cache: npm
2220

2321
- run: npm ci
2422

2523
- name: Set version from release tag
2624
run: npm version "${GITHUB_REF_NAME#v}" --no-git-tag-version
2725

28-
2926
- run: npm publish --provenance --access public

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,15 @@
2727
],
2828
"author": "Short.io",
2929
"license": "MIT",
30+
"private": false,
3031
"repository": {
3132
"type": "git",
32-
"url": "https://github.com/Short-io/browser-sdk.git"
33+
"url": "git+https://github.com/Short-io/browser-sdk.git"
3334
},
35+
"bugs": {
36+
"url": "https://github.com/Short-io/browser-sdk/issues"
37+
},
38+
"homepage": "https://github.com/Short-io/browser-sdk#readme",
3439
"devDependencies": {
3540
"@rollup/plugin-node-resolve": "^15.0.0",
3641
"@rollup/plugin-typescript": "^11.0.0",

0 commit comments

Comments
 (0)