Skip to content

Commit 2e0e251

Browse files
committed
feat(workflow): switch npmjs to OIDC auth
1 parent d6c6485 commit 2e0e251

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
permissions:
77
contents: write
8+
id-token: write
89

910
jobs:
1011
build:
@@ -479,10 +480,12 @@ jobs:
479480
node-version: '20'
480481
registry-url: 'https://registry.npmjs.org'
481482

483+
- name: update npm
484+
if: steps.tag.outputs.version != ''
485+
run: npm install -g [email protected]
486+
482487
- name: build and publish npm packages
483488
if: steps.tag.outputs.version != ''
484-
env:
485-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
486489
run: |
487490
cd packages/node
488491
@@ -516,17 +519,15 @@ jobs:
516519
platform_name=$(basename "$platform_dir")
517520
echo " Publishing @sqliteai/sqlite-ai-${platform_name}..."
518521
cd "$platform_dir"
519-
npm publish --access public
520-
# TODO: Add --provenance flag after switching to OIDC (requires package to exist first)
522+
npm publish --provenance --access public
521523
cd ..
522524
echo " ✓ Published @sqliteai/sqlite-ai-${platform_name}"
523525
done
524526
cd ..
525527
526528
# Publish main package
527529
echo "Publishing main package to npm..."
528-
npm publish --access public
529-
# TODO: Add --provenance flag after switching to OIDC (requires package to exist first)
530+
npm publish --provenance --access public
530531
echo "✓ Published @sqliteai/sqlite-ai@${{ steps.tag.outputs.version }}"
531532
532533
echo ""

src/sqlite-ai.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
extern "C" {
2525
#endif
2626

27-
#define SQLITE_AI_VERSION "0.7.56"
27+
#define SQLITE_AI_VERSION "0.7.57"
2828

2929
SQLITE_AI_API int sqlite3_ai_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
3030

0 commit comments

Comments
 (0)