create-twenty-app 2.22.0 → 2.23.0-alpha.2

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.
@@ -14,6 +14,15 @@ List the top things your app does, for example:
14
14
 
15
15
  Setup instructions live in [SETUP.md](SETUP.md).
16
16
 
17
+ ## Publishing
18
+
19
+ The `Publish` workflow (`.github/workflows/publish.yml`) publishes the app to npm with provenance using [npm trusted publishing](https://docs.npmjs.com/trusted-publishers). To publish:
20
+
21
+ 1. On npmjs.com register this repository as a trusted publisher of your package, pointing at the `publish.yml` workflow.
22
+ 2. Bump the version in `package.json`, then push a version tag (e.g. `git tag v1.0.0 && git push --tags`) or run the workflow manually from the Actions tab.
23
+
24
+ Publishing with provenance is also how you prove ownership when claiming your app in a Twenty marketplace.
25
+
17
26
  ## Changelog
18
27
 
19
28
  Notable changes are documented in [CHANGELOG.md](CHANGELOG.md).
@@ -0,0 +1,52 @@
1
+ # Publishes the app to npm with provenance (npm trusted publishing).
2
+ #
3
+ # One-time setup:
4
+ # 1. On npmjs.com open your package > Settings > Trusted Publisher and register
5
+ # this repository and this workflow file (publish.yml).
6
+ # See https://docs.npmjs.com/trusted-publishers
7
+ # 2. Push a version tag (e.g. `git tag v1.0.0 && git push --tags`) or run the
8
+ # workflow manually from the Actions tab.
9
+ #
10
+ # Publishing with provenance certifies which GitHub repository the package is
11
+ # built from. This is also how you claim ownership of your app in a Twenty
12
+ # marketplace: the claim flow verifies you own the GitHub account or
13
+ # organization the provenance points to.
14
+ name: Publish
15
+
16
+ on:
17
+ push:
18
+ tags:
19
+ - 'v*'
20
+ workflow_dispatch:
21
+
22
+ permissions:
23
+ contents: read
24
+ # Required for npm trusted publishing (OIDC provenance).
25
+ id-token: write
26
+
27
+ jobs:
28
+ publish:
29
+ runs-on: ubuntu-latest
30
+ steps:
31
+ - name: Checkout
32
+ uses: actions/checkout@v4
33
+
34
+ - name: Setup Node.js
35
+ uses: actions/setup-node@v4
36
+ with:
37
+ node-version: 24
38
+ registry-url: https://registry.npmjs.org
39
+
40
+ - name: Update npm
41
+ # Trusted publishing requires npm 11.5.1 or later.
42
+ run: npm install -g npm@latest
43
+
44
+ - name: Install dependencies
45
+ run: yarn install --immutable
46
+
47
+ - name: Publish to npm
48
+ # Uncomment if publishing from a private source repo: npm rejects
49
+ # OIDC provenance for private repos
50
+ # env:
51
+ # TWENTY_APP_PUBLISH_DISABLE_PROVENANCE: 'true'
52
+ run: yarn twenty app:publish
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-twenty-app",
3
- "version": "2.22.0",
3
+ "version": "2.23.0-alpha.2",
4
4
  "description": "Command-line interface to create Twenty application",
5
5
  "main": "dist/cli.cjs",
6
6
  "bin": "dist/cli.cjs",
@@ -34,7 +34,7 @@
34
34
  "lodash.camelcase": "^4.3.0",
35
35
  "lodash.kebabcase": "^4.1.1",
36
36
  "lodash.startcase": "^4.4.0",
37
- "twenty-sdk": "2.22.0",
37
+ "twenty-sdk": "2.23.0-alpha.2",
38
38
  "uuid": "^13.0.2"
39
39
  },
40
40
  "devDependencies": {
@@ -14,6 +14,15 @@ List the top things your app does, for example:
14
14
 
15
15
  Setup instructions live in [SETUP.md](SETUP.md).
16
16
 
17
+ ## Publishing
18
+
19
+ The `Publish` workflow (`.github/workflows/publish.yml`) publishes the app to npm with provenance using [npm trusted publishing](https://docs.npmjs.com/trusted-publishers). To publish:
20
+
21
+ 1. On npmjs.com register this repository as a trusted publisher of your package, pointing at the `publish.yml` workflow.
22
+ 2. Bump the version in `package.json`, then push a version tag (e.g. `git tag v1.0.0 && git push --tags`) or run the workflow manually from the Actions tab.
23
+
24
+ Publishing with provenance is also how you prove ownership when claiming your app in a Twenty marketplace.
25
+
17
26
  ## Changelog
18
27
 
19
28
  Notable changes are documented in [CHANGELOG.md](CHANGELOG.md).