@rolemodel/optics 2.4.0 → 2.5.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.
@@ -4,8 +4,12 @@ on:
4
4
  workflow_dispatch:
5
5
  release:
6
6
  types: [published]
7
+ # npm Trusted Publishing: GitHub proves who is publishing with a short-lived OIDC token, so there
8
+ # is no NPM_TOKEN to expire or leak. The trusted publisher is set on npmjs.com under the package's
9
+ # settings, and names this workflow file.
7
10
  permissions:
8
- contents: write
11
+ contents: read
12
+ id-token: write
9
13
  jobs:
10
14
  build-npm:
11
15
  runs-on: ubuntu-latest
@@ -15,8 +19,8 @@ jobs:
15
19
  with:
16
20
  node-version: '24.x'
17
21
  registry-url: 'https://registry.npmjs.org'
22
+ # Trusted Publishing needs npm 11.5.1 or later.
23
+ - run: npm install -g npm@latest
18
24
  - run: yarn install --immutable
19
25
  - run: yarn build
20
26
  - run: npm publish --access public
21
- env:
22
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -33,5 +33,7 @@ jobs:
33
33
  run: yarn build:css
34
34
  - name: Build Tokens
35
35
  run: yarn build:tokens
36
+ - name: Build LLMS Docs
37
+ run: yarn build-docs:llms
36
38
  - name: Build Storybook
37
- run: yarn build-storybook
39
+ run: yarn build-docs:storybook
@@ -24,12 +24,12 @@ jobs:
24
24
  yarn install --immutable
25
25
  - name: Build 🔧
26
26
  run: | # build the Storybook files
27
- yarn build-storybook
27
+ yarn build-docs
28
28
  - name: Deploy 🚀
29
29
  uses: JamesIves/github-pages-deploy-action@3.6.2
30
30
  with:
31
31
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32
32
  BRANCH: gh-pages # The branch the action should deploy to.
33
- FOLDER: storybook-static # The folder that the build-storybook script generates files.
33
+ FOLDER: storybook-static # The folder that the build-docs:storybook script generates files.
34
34
  CLEAN: true # Automatically remove deleted files from the deploy branch
35
35
  TARGET_FOLDER: docs # The folder that we serve our Storybook files from
package/.prettierignore CHANGED
@@ -2,3 +2,6 @@
2
2
  tools/templates
3
3
  .yarn/*
4
4
  optics-design-system.code-workspace
5
+
6
+ # Generated docs
7
+ llms-docs
Binary file