Skip to content

Commit 2337618

Browse files
committed
Prepare v0.1.1 release
1 parent f3d19f2 commit 2337618

File tree

16 files changed

+54
-34
lines changed

16 files changed

+54
-34
lines changed

.ci-mgmt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ template: external-bridged-provider
88
upstreamProviderOrg: pydantic
99
# major version of the current provider - used in make files
1010
# This should always be set by all providers as this is key to go module paths.
11-
major-version: 1
11+
major-version: 0
1212
# Enable using the terraform converter for example generation.
1313
pulumiConvert: 1
1414
# Set a GitHub username here for automatic upgrade PRs to be assigned to.

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ jobs:
6464
secrets: inherit
6565

6666
publish:
67+
if: ${{ false }}
6768
name: publish
6869
permissions:
6970
contents: write

.github/workflows/prerequisites.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- uses: pulumi/provider-version-action@3a647064cf4697c7c6352b9a1d9e554450cbe957 # v1.6.1
5959
id: provider-version
6060
with:
61-
major-version: 1
61+
major-version: 0
6262
set-env: 'PROVIDER_VERSION'
6363
- name: Cache examples generation
6464
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ jobs:
158158
sdk: nodejs,python
159159
version: ${{ inputs.version }}
160160
env:
161+
# Scoped npm packages default to private on first publish unless access is set.
162+
NPM_CONFIG_ACCESS: public
161163
PYPI_USERNAME: __token__
162164
PYPI_PASSWORD: ${{ steps.esc-secrets.outputs.PYPI_API_TOKEN }}
163165
NODE_AUTH_TOKEN: ${{ steps.esc-secrets.outputs.NPM_TOKEN }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PULUMI_MISSING_DOCS_ERROR := false
1616

1717
# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable
1818
# Local & branch builds will just used this fixed default version unless specified
19-
PROVIDER_VERSION ?= 1.0.0-alpha.0+dev
19+
PROVIDER_VERSION ?= 0.1.0-alpha.0+dev
2020

2121
# Check version doesn't start with a "v" - this is a common mistake
2222
ifeq ($(shell echo $(PROVIDER_VERSION) | cut -c1),v)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ This package is available for several languages/platforms:
1111
To use from JavaScript or TypeScript in Node.js, install using either `npm`:
1212

1313
```bash
14-
npm install @pulumi/logfire
14+
npm install @pydantic/pulumi-logfire
1515
```
1616

1717
or `yarn`:
1818

1919
```bash
20-
yarn add @pulumi/logfire
20+
yarn add @pydantic/pulumi-logfire
2121
```
2222

2323
### Python

examples/basic-ts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as pulumi from "@pulumi/pulumi";
2-
import * as logfire from "@pulumi/logfire";
2+
import * as logfire from "@pydantic/pulumi-logfire";
33

44
const config = new pulumi.Config("logfire");
55
const baseUrl = config.require("baseUrl");

examples/examples_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func getJSBaseOptions(t *testing.T) integration.ProgramTestOptions {
1414
base := getBaseOptions(t)
1515
baseJS := base.With(integration.ProgramTestOptions{
1616
Dependencies: []string{
17-
"@pulumi/logfire",
17+
"@pydantic/pulumi-logfire",
1818
},
1919
})
2020

provider/cmd/pulumi-resource-logfire/bridge-metadata.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,29 @@
33
"resources": {
44
"logfire_alert": {
55
"current": "logfire:index/alert:Alert",
6-
"majorVersion": 1,
76
"fields": {
87
"channel_ids": {
98
"maxItemsOne": false
109
}
1110
}
1211
},
1312
"logfire_channel": {
14-
"current": "logfire:index/channel:Channel",
15-
"majorVersion": 1
13+
"current": "logfire:index/channel:Channel"
1614
},
1715
"logfire_dashboard": {
18-
"current": "logfire:index/dashboard:Dashboard",
19-
"majorVersion": 1
16+
"current": "logfire:index/dashboard:Dashboard"
2017
},
2118
"logfire_organization": {
22-
"current": "logfire:index/organization:Organization",
23-
"majorVersion": 1
19+
"current": "logfire:index/organization:Organization"
2420
},
2521
"logfire_project": {
26-
"current": "logfire:index/project:Project",
27-
"majorVersion": 1
22+
"current": "logfire:index/project:Project"
2823
},
2924
"logfire_read_token": {
30-
"current": "logfire:index/readToken:ReadToken",
31-
"majorVersion": 1
25+
"current": "logfire:index/readToken:ReadToken"
3226
},
3327
"logfire_write_token": {
34-
"current": "logfire:index/writeToken:WriteToken",
35-
"majorVersion": 1
28+
"current": "logfire:index/writeToken:WriteToken"
3629
}
3730
}
3831
},

scripts/precommit-check-generated.sh

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,37 @@ if command -v mise >/dev/null 2>&1; then
99
eval "$(mise env)"
1010
fi
1111

12-
echo "[pre-commit] Regenerating schema and SDKs to verify generated files are in sync..."
13-
make schema PULUMI_CONVERT=0
14-
make generate_sdks PULUMI_CONVERT=0
12+
major_version="$(awk -F': *' '$1=="major-version" {print $2; exit}' .ci-mgmt.yaml | tr -d '[:space:]')"
13+
if [[ -z "$major_version" ]]; then
14+
echo "[pre-commit] Could not determine major-version from .ci-mgmt.yaml"
15+
exit 1
16+
fi
17+
18+
# Use the repository default provider version and ensure it stays aligned with CI major stream.
19+
provider_version="$(sed -nE 's/^PROVIDER_VERSION \?= ([^[:space:]]+).*$/\1/p' Makefile | head -n1)"
20+
if [[ -z "$provider_version" ]]; then
21+
echo "[pre-commit] Could not determine PROVIDER_VERSION default from Makefile"
22+
exit 1
23+
fi
24+
if [[ "$provider_version" != "${major_version}."* ]]; then
25+
echo "[pre-commit] Makefile PROVIDER_VERSION (${provider_version}) does not match .ci-mgmt.yaml major-version (${major_version})"
26+
exit 1
27+
fi
28+
29+
echo "[pre-commit] Regenerating schema and SDKs (PROVIDER_VERSION=${provider_version}) to verify generated files are in sync..."
30+
31+
# Force regeneration even if local caches/binaries exist.
32+
rm -f .make/schema bin/pulumi-tfgen-logfire
33+
make schema PULUMI_CONVERT=0 PROVIDER_VERSION="$provider_version"
34+
make generate_sdks PULUMI_CONVERT=0 PROVIDER_VERSION="$provider_version"
1535

16-
if ! git diff --quiet -- provider/cmd/pulumi-resource-logfire/schema.json provider/cmd/pulumi-resource-logfire/schema-embed.json sdk; then
36+
if ! git diff --quiet -- \
37+
provider/cmd/pulumi-resource-logfire/schema.json \
38+
provider/cmd/pulumi-resource-logfire/schema-embed.json \
39+
provider/cmd/pulumi-resource-logfire/bridge-metadata.json \
40+
sdk; then
1741
echo "[pre-commit] Generated artifacts changed after regeneration."
1842
echo "[pre-commit] Run the following and re-commit:"
19-
echo " git add provider/cmd/pulumi-resource-logfire/schema.json provider/cmd/pulumi-resource-logfire/schema-embed.json sdk"
43+
echo " git add provider/cmd/pulumi-resource-logfire/schema.json provider/cmd/pulumi-resource-logfire/schema-embed.json provider/cmd/pulumi-resource-logfire/bridge-metadata.json sdk"
2044
exit 1
2145
fi

0 commit comments

Comments
 (0)