duckdb 1.4.1 → 1.4.2-dev4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,29 +13,32 @@ env:
|
|
13
13
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
14
14
|
AWS_ACCESS_KEY_ID: ${{secrets.S3_DUCKDB_NODE_ID}}
|
15
15
|
AWS_SECRET_ACCESS_KEY: ${{secrets.S3_DUCKDB_NODE_KEY}}
|
16
|
-
|
16
|
+
AWS_ENDPOINT_URL: ${{ secrets.S3_DUCKDB_NODE_ENDPOINT }}
|
17
17
|
|
18
18
|
jobs:
|
19
19
|
set-up-npm:
|
20
|
-
name:
|
21
|
-
runs-on: ubuntu-
|
20
|
+
name: Upload to NPM
|
21
|
+
runs-on: ubuntu-latest
|
22
22
|
env:
|
23
23
|
DUCKDB_NODE_BUILD_CACHE: 0
|
24
|
+
permissions: # only this job has permission to upload to npm using trusted publishing
|
25
|
+
id-token: write # Required for OIDC
|
26
|
+
contents: read
|
24
27
|
steps:
|
25
28
|
- uses: actions/checkout@v3
|
26
29
|
with:
|
27
30
|
fetch-depth: 0
|
28
31
|
|
29
|
-
- uses: actions/setup-
|
32
|
+
- uses: actions/setup-node@v4
|
30
33
|
with:
|
31
|
-
|
34
|
+
node-version: '24'
|
35
|
+
registry-url: 'https://registry.npmjs.org'
|
32
36
|
|
33
37
|
- name: Setup NPM
|
34
38
|
shell: bash
|
35
39
|
run: ./scripts/node_version.sh upload
|
36
40
|
env:
|
37
41
|
DUCKDB_NODE_BUILD_CACHE: 0 # create a standalone package
|
38
|
-
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|
39
42
|
|
40
43
|
linux-nodejs:
|
41
44
|
name: node.js Linux
|
package/package.json
CHANGED
package/scripts/node_version.sh
CHANGED
@@ -5,6 +5,7 @@ set -ex
|
|
5
5
|
git config --global user.email "quack@duckdb.org"
|
6
6
|
git config --global user.name "DuckDB Admin"
|
7
7
|
|
8
|
+
npm -v
|
8
9
|
|
9
10
|
export TAG=''
|
10
11
|
# for main do prereleases
|
@@ -28,6 +29,5 @@ npm pack --dry-run
|
|
28
29
|
# upload to npm, maybe
|
29
30
|
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ && "$1" = "upload" ]] ; then
|
30
31
|
npm version
|
31
|
-
npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
|
32
32
|
npm publish --access public $TAG
|
33
33
|
fi
|