flowzonify 0.1.9 → 0.2.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.
@@ -9,6 +9,11 @@ on:
9
9
  types: [opened, synchronize, closed]
10
10
  branches: [main, master]
11
11
 
12
+ permissions:
13
+ id-token: write # https://docs.npmjs.com/trusted-publishers
14
+ contents: read
15
+ packages: read # should we decide to publish to ghcr.io
16
+
12
17
  jobs:
13
18
  flowzone:
14
19
  name: Flowzone
@@ -1,3 +1,17 @@
1
+ - commits:
2
+ - subject: Add the npm OIDC auth permissions section
3
+ hash: 89f6402def23c96e1851dbe47d4086f4871985b8
4
+ body: ""
5
+ footer:
6
+ Change-type: minor
7
+ change-type: minor
8
+ See: https://balena.fibery.io/Work/Project/Create-OIDC-trust-between-npm-and-GitHub-Actions-2091
9
+ see: https://balena.fibery.io/Work/Project/Create-OIDC-trust-between-npm-and-GitHub-Actions-2091
10
+ author: Thodoris Greasidis
11
+ nested: []
12
+ version: 0.2.0
13
+ title: ""
14
+ date: 2026-01-29T17:03:24.065Z
1
15
  - commits:
2
16
  - subject: Use cat to pipe raw text to flowzone workflow
3
17
  hash: 5192b6580e1eef288ecce4b0d4b8ec77a0050bcc
@@ -12,7 +26,7 @@
12
26
  nested: []
13
27
  version: 0.1.9
14
28
  title: ""
15
- date: 2023-04-18T13:07:22.181Z
29
+ date: 2023-04-18T13:26:10.739Z
16
30
  - commits:
17
31
  - subject: Add support for external contributions
18
32
  hash: 70142276098c488baed7572ee69405f8f4810e38
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
4
4
  automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5
5
  This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 0.2.0 - 2026-01-29
8
+
9
+ * Add the npm OIDC auth permissions section [Thodoris Greasidis]
10
+
7
11
  ## 0.1.9 - 2023-04-18
8
12
 
9
13
  * Use cat to pipe raw text to flowzone workflow [Kyle Harding]
package/flowzonify.sh CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  git checkout -b "flowzonify"
4
4
 
5
+ COMMIT_MESSAGE="Update flowzone config"
6
+
5
7
  if [[ -f ".resinci.yml" ]]; then
6
8
  rm .resinci.yml
7
9
  fi
@@ -20,6 +22,11 @@ on:
20
22
  types: [opened, synchronize, closed]
21
23
  branches: [main, master]
22
24
 
25
+ permissions:
26
+ id-token: write # https://docs.npmjs.com/trusted-publishers
27
+ contents: read
28
+ packages: read # should we decide to publish to ghcr.io
29
+
23
30
  jobs:
24
31
  flowzone:
25
32
  name: Flowzone
@@ -37,10 +44,24 @@ jobs:
37
44
  EOF
38
45
 
39
46
  git add .github/workflows/flowzone.yml
40
- fi
41
47
 
42
- if [[ -f "karma.conf.js" ]]; then
43
- npm i -D balena-config-karma@4.0.0 @types/chai@^4.3.0 @types/chai-as-promised@^7.1.5 @types/mocha@^9.1.1 chai@^4.3.4 mocha@^10.0.0 ts-node@^10.0.0 karma@^5.0.0
48
+ if [[ -f "karma.conf.js" ]]; then
49
+ npm i -D balena-config-karma@4.0.0 @types/chai@^4.3.0 @types/chai-as-promised@^7.1.5 @types/mocha@^9.1.1 chai@^4.3.4 mocha@^10.0.0 ts-node@^10.0.0 karma@^5.0.0
50
+ fi
51
+
52
+ COMMIT_MESSAGE="Replace balenaCI with flowzone"
53
+
54
+ else
55
+ # if it's an npm module, add the npm OIDC auth permissions section
56
+ if [[ -f "package.json" ]] && ! grep -Pz "(?m)permissions:\s+id-token: write" ".github/workflows/flowzone.yml" > /dev/null; then
57
+ sed -i '/^jobs:/i \
58
+ permissions:\
59
+ id-token: write # https://docs.npmjs.com/trusted-publishers\
60
+ contents: read\
61
+ packages: read # should we decide to publish to ghcr.io\
62
+
63
+ ' ".github/workflows/flowzone.yml"
64
+ fi
44
65
  fi
45
66
 
46
- git commit -am 'Replace balenaCI with flowzone' -m 'Change-type: patch'
67
+ git commit -am "$COMMIT_MESSAGE" -m 'Change-type: patch'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowzonify",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "A CLI utility to make switching to flowzone more automated",
5
5
  "bin": {
6
6
  "flowzonify": "flowzonify.sh"
@@ -23,6 +23,6 @@
23
23
  },
24
24
  "homepage": "https://github.com/product-os/flowzonify#readme",
25
25
  "versionist": {
26
- "publishedAt": "2023-04-18T13:07:22.267Z"
26
+ "publishedAt": "2026-01-29T17:03:24.110Z"
27
27
  }
28
28
  }