Skip to content

Commit c12aa62

Browse files
authored
Bump version to v1.0.2 (#347)
1 parent 8bcd4ce commit c12aa62

File tree

4 files changed

+61
-9
lines changed

4 files changed

+61
-9
lines changed

.github/workflows/ci.yml

+46
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8+
workflow_call:
89

910
jobs:
1011
quality:
@@ -48,6 +49,51 @@ jobs:
4849
env:
4950
SURREAL_PROTOCOL: ${{ matrix.engine }}
5051

52+
dry-run-jsr-publish:
53+
name: JSR Publish Dry Run
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Install Bun
57+
uses: oven-sh/setup-bun@v2
58+
59+
- name: Code Checkout
60+
uses: actions/checkout@v4
61+
62+
- name: Install dependencies
63+
run: bun install
64+
65+
- name: Generate JSR config
66+
run: bun run jsr
67+
68+
- name: Dry run publish to JSR
69+
run: bunx jsr publish --dry-run
70+
71+
dry-run-npm-publish:
72+
name: NPM Publish Dry Run
73+
runs-on: ubuntu-latest
74+
steps:
75+
- name: Install Bun
76+
uses: oven-sh/setup-bun@v2
77+
78+
- uses: actions/setup-node@v4
79+
with:
80+
node-version: '18.x'
81+
registry-url: 'https://registry.npmjs.org'
82+
83+
- name: Code Checkout
84+
uses: actions/checkout@v4
85+
86+
- name: Install dependencies
87+
run: bun install
88+
89+
- name: Build library
90+
run: bun run build
91+
92+
- name: Dry run publish to NPM
93+
run: npm publish --dry-run --tag $(npm pkg get version | tr -d '"' | grep -qoE "^\d+\.\d+\.\d+$" && echo 'latest' || echo 'beta')
94+
env:
95+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
96+
5197
build:
5298
name: Build
5399
runs-on: ubuntu-latest

.github/workflows/publish.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
name: Publish
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
release:
5+
types: [published]
76

87
jobs:
8+
ci:
9+
name: CI
10+
uses: ./.github/workflows/ci.yml
911
npm:
1012
name: NPM
13+
needs: [ci]
1114
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
id-token: write
1218
steps:
1319
- name: Install Bun
1420
uses: oven-sh/setup-bun@v2
@@ -28,13 +34,12 @@ jobs:
2834
run: bun run build
2935

3036
- name: Publish to NPM
31-
# TODO temporary, enable beta tags again asap
32-
# run: npm publish --tag $(npm pkg get version | tr -d '"' | grep -qoE "^\d+\.\d+\.\d+$" && echo 'latest' || echo 'beta')
33-
run: npm publish
37+
run: npm publish --provenance --tag $(npm pkg get version | tr -d '"' | grep -qoE "^\d+\.\d+\.\d+$" && echo 'latest' || echo 'beta')
3438
env:
3539
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3640
jsr:
3741
name: JSR
42+
needs: [ci]
3843
runs-on: ubuntu-latest
3944
permissions:
4045
contents: read

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "surrealdb",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"type": "module",
55
"license": "Apache-2.0",
66
"repository": {
7-
"url": "https://github.com/surrealdb/surrealdb.js"
7+
"type": "git",
8+
"url": "git+https://github.com/surrealdb/surrealdb.js.git"
89
},
910
"homepage": "https://github.com/surrealdb/surrealdb.js",
1011
"packageManager": "^[email protected]",

src/data/types/recordid.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Uuid } from "..";
21
import { SurrealDbError } from "../../errors";
2+
import { Uuid } from "./uuid";
33

44
const MAX_i64 = 9223372036854775807n;
55
export type RecordIdValue =

0 commit comments

Comments
 (0)