@apollo/client-ai-apps 0.1.0 → 0.1.1

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.
@@ -3,34 +3,51 @@ name: Release new Version
3
3
  on:
4
4
  workflow_dispatch:
5
5
 
6
+ permissions:
7
+ contents: write
8
+ id-token: write # Required for OIDC
9
+
6
10
  jobs:
7
11
  release:
8
12
  name: Release
9
13
  if: github.repository == 'apollographql/apollo-ai-apps-client'
10
14
  runs-on: ubuntu-latest
11
- permissions:
12
- contents: write # to create release (changesets/action)
13
- issues: write # to post issue comments (changesets/action)
14
- pull-requests: write # to create pull request (changesets/action)
15
- id-token: write # to use OpenID Connect token for provenance (changesets/action)
16
15
  steps:
17
16
  - uses: actions/checkout@v4
18
17
 
19
18
  - name: Setup Node.js 20.x
20
19
  uses: actions/setup-node@v4
21
20
  with:
22
- node-version: 20.x
21
+ node-version: ">=23.6.0"
22
+ registry-url: "https://registry.npmjs.org/"
23
+ env:
24
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23
25
 
24
26
  - name: Install dependencies
25
27
  shell: bash
26
28
  run: npm ci
27
29
 
28
- - name: Create Release Pull Request or Publish to npm
29
- uses: changesets/action@v1
30
- with:
31
- publish: npm run build
32
- version: changeset:version
33
- env:
34
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36
- NPM_CONFIG_PROVENANCE: true
30
+ - name: Build
31
+ shell: bash
32
+ run: npm run build
33
+
34
+ # - name: Test
35
+ # shell: bash
36
+ # run: npm run test
37
+
38
+ # - name: Configure Git
39
+ # run: |
40
+ # git config --global user.name GitHub Actions
41
+ # git config user.email github-actions@github.com
42
+
43
+ # - uses: knope-dev/action@v2.1.0
44
+ # with:
45
+ # version: 0.21.5
46
+
47
+ # - run: knope release
48
+ # env:
49
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50
+
51
+ - name: Publish to npm
52
+ shell: bash
53
+ run: npm publish --provenance --access public
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@apollo/client-ai-apps",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
+ "repository": {
8
+ "url": "https://github.com/apollographql/apollo-ai-apps-client"
9
+ },
7
10
  "type": "module",
8
11
  "main": "dist/index.js",
9
12
  "module": "dist/index.js",
@@ -17,10 +20,9 @@
17
20
  "build": "npm run build:react && npm run build:vite",
18
21
  "build:react": "node ./scripts/build.mjs && tsc src/index.ts --emitDeclarationOnly --declaration --outDir dist --skipLibCheck --lib ES2015,DOM --target ES2015 --moduleResolution bundler --jsx react",
19
22
  "build:vite": "node ./scripts/build-vite.mjs && tsc src/vite/index.ts --emitDeclarationOnly --declaration --outDir dist/vite --skipLibCheck --lib ES2015,DOM --target ES2020 --module esnext --moduleResolution node --allowSyntheticDefaultImports",
20
- "changeset:new": "npx @changesets/cli",
21
- "changeset:version": "npx @changesets/cli version",
22
23
  "test": "vitest run --coverage",
23
- "test:watch": "vitest --coverage"
24
+ "test:watch": "vitest --coverage",
25
+ "changeset": "knope document-change"
24
26
  },
25
27
  "keywords": [],
26
28
  "author": "",
@@ -1,8 +0,0 @@
1
- # Changesets
2
-
3
- Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
- with multi-package repos, or single-package repos to help you version and publish your code. You can
5
- find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
-
7
- We have a quick list of common questions to get you started engaging with this project in
8
- [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3
- "changelog": "@changesets/cli/changelog",
4
- "commit": false,
5
- "fixed": [],
6
- "linked": [],
7
- "access": "restricted",
8
- "baseBranch": "main",
9
- "updateInternalDependencies": "patch",
10
- "ignore": []
11
- }