Skip to content

Commit

Permalink
actually publish on version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jtbandes committed Apr 15, 2024
1 parent fcdbd6b commit 1ff7a0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
key: v0-${{ runner.os }}-swiftpm-${{ hashFiles('**/Package.resolved') }}
restore-keys: v0-${{ runner.os }}-swiftpm-

- run: npm publish --provenance --dry-run
- run: npm publish --provenance --access public --dry-run

- run: npm publish --provenance --access public
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"type": "git",
"url": "git+https://github.com/jtbandes/quicklookjs.git"
},
"engines": {
"node": ">=20"
},
"types": "index.d.ts",
"scripts": {
"prepack": "make build"
Expand Down

0 comments on commit 1ff7a0e

Please sign in to comment.