Skip to content

Commit 4ff1dc3

Browse files
committed
feat(workflow): switch npmjs to OIDC auth
1 parent 8f4fe36 commit 4ff1dc3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,12 @@ jobs:
354354
node-version: '20'
355355
registry-url: 'https://registry.npmjs.org'
356356

357+
- name: update npm
358+
if: steps.tag.outputs.version != ''
359+
run: npm install -g [email protected]
360+
357361
- name: build and publish npm packages
358362
if: steps.tag.outputs.version != ''
359-
env:
360-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
361363
run: |
362364
cd packages/node
363365
@@ -391,17 +393,15 @@ jobs:
391393
platform_name=$(basename "$platform_dir")
392394
echo " Publishing @sqliteai/sqlite-sync-${platform_name}..."
393395
cd "$platform_dir"
394-
npm publish --access public
395-
# TODO: Add --provenance flag after switching to OIDC (requires package to exist first)
396+
npm publish --provenance --access public
396397
cd ..
397398
echo " ✓ Published @sqliteai/sqlite-sync-${platform_name}"
398399
done
399400
cd ..
400401
401402
# Publish main package
402403
echo "Publishing main package to npm..."
403-
npm publish --access public
404-
# TODO: Add --provenance flag after switching to OIDC (requires package to exist first)
404+
npm publish --provenance --access public
405405
echo "✓ Published @sqliteai/sqlite-sync@${{ steps.tag.outputs.version }}"
406406
407407
echo ""

src/cloudsync.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
extern "C" {
2121
#endif
2222

23-
#define CLOUDSYNC_VERSION "0.8.53"
23+
#define CLOUDSYNC_VERSION "0.8.54"
2424

2525
int sqlite3_cloudsync_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
2626

0 commit comments

Comments
 (0)