Skip to content

Commit

Permalink
Bump version to v1.0.2 (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy authored Sep 30, 2024
1 parent 8bcd4ce commit c12aa62
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 9 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
pull_request:
workflow_call:

jobs:
quality:
Expand Down Expand Up @@ -48,6 +49,51 @@ jobs:
env:
SURREAL_PROTOCOL: ${{ matrix.engine }}

dry-run-jsr-publish:
name: JSR Publish Dry Run
runs-on: ubuntu-latest
steps:
- name: Install Bun
uses: oven-sh/setup-bun@v2

- name: Code Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: bun install

- name: Generate JSR config
run: bun run jsr

- name: Dry run publish to JSR
run: bunx jsr publish --dry-run

dry-run-npm-publish:
name: NPM Publish Dry Run
runs-on: ubuntu-latest
steps:
- name: Install Bun
uses: oven-sh/setup-bun@v2

- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Code Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: bun install

- name: Build library
run: bun run build

- name: Dry run publish to NPM
run: npm publish --dry-run --tag $(npm pkg get version | tr -d '"' | grep -qoE "^\d+\.\d+\.\d+$" && echo 'latest' || echo 'beta')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

build:
name: Build
runs-on: ubuntu-latest
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Publish

on:
push:
tags:
- '*'
release:
types: [published]

jobs:
ci:
name: CI
uses: ./.github/workflows/ci.yml
npm:
name: NPM
needs: [ci]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Install Bun
uses: oven-sh/setup-bun@v2
Expand All @@ -28,13 +34,12 @@ jobs:
run: bun run build

- name: Publish to NPM
# TODO temporary, enable beta tags again asap
# run: npm publish --tag $(npm pkg get version | tr -d '"' | grep -qoE "^\d+\.\d+\.\d+$" && echo 'latest' || echo 'beta')
run: npm publish
run: npm publish --provenance --tag $(npm pkg get version | tr -d '"' | grep -qoE "^\d+\.\d+\.\d+$" && echo 'latest' || echo 'beta')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
jsr:
name: JSR
needs: [ci]
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "surrealdb",
"version": "1.0.1",
"version": "1.0.2",
"type": "module",
"license": "Apache-2.0",
"repository": {
"url": "https://github.com/surrealdb/surrealdb.js"
"type": "git",
"url": "git+https://github.com/surrealdb/surrealdb.js.git"
},
"homepage": "https://github.com/surrealdb/surrealdb.js",
"packageManager": "^bun@1.1.17",
Expand Down
2 changes: 1 addition & 1 deletion src/data/types/recordid.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Uuid } from "..";
import { SurrealDbError } from "../../errors";
import { Uuid } from "./uuid";

const MAX_i64 = 9223372036854775807n;
export type RecordIdValue =
Expand Down

0 comments on commit c12aa62

Please sign in to comment.