1
- name : " Publish"
1
+ name : ' Publish'
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
6
next_version :
7
- type : " string"
8
- description : " version (e.g. 3.4.0-alpha.0)"
7
+ type : ' string'
8
+ description : ' version (e.g. 3.4.0-alpha.0)'
9
9
required : true
10
10
skip_publish :
11
- type : " boolean"
12
- description : " mark in case only the version update shall be executed, skipping the release to npm"
11
+ type : ' boolean'
12
+ description : ' mark in case only the version update shall be executed, skipping the release to npm'
13
13
required : true
14
14
skip_push :
15
- type : " boolean"
16
- description : " mark in case the version update shall not be pushed back to the repository"
15
+ type : ' boolean'
16
+ description : ' mark in case the version update shall not be pushed back to the repository'
17
17
required : true
18
18
stable_release :
19
- type : " boolean"
20
- description : " mark in case this is a full stable release (flag is ignored in case publish is skipped)"
19
+ type : ' boolean'
20
+ description : ' mark in case this is a full stable release (flag is ignored in case publish is skipped)'
21
21
required : true
22
22
23
23
jobs :
24
24
publish :
25
25
permissions :
26
- contents : " write"
27
- id-token : " write"
28
- runs-on : " ubuntu-latest"
26
+ contents : ' write'
27
+ id-token : ' write'
28
+ runs-on : ' ubuntu-latest'
29
29
steps :
30
- - uses : " actions/checkout@v4"
30
+ - uses : ' actions/checkout@v4'
31
31
with :
32
- token : " ${{ secrets.JSONFORMS_PUBLISH_PAT }}"
32
+ token : ' ${{ secrets.JSONFORMS_PUBLISH_PAT }}'
33
33
34
- - name : " Configure Git Credentials"
34
+ - name : ' Configure Git Credentials'
35
35
run : |
36
36
git config user.name "jsonforms-publish[bot]"
37
37
git config user.email "jsonforms-publish@eclipsesource.com"
38
38
39
- - name : " Setup node"
40
- uses : " actions/setup-node@v3 "
39
+ - name : ' Setup node'
40
+ uses : ' actions/setup-node@v4 '
41
41
with :
42
42
node-version : ' 22'
43
43
registry-url : ' https://registry.npmjs.org'
@@ -48,19 +48,19 @@ jobs:
48
48
with :
49
49
run_install : false
50
50
51
- - name : " Install Packages"
52
- run : " pnpm i --frozen-lockfile"
51
+ - name : ' Install Packages'
52
+ run : ' pnpm i --frozen-lockfile'
53
53
54
- - name : " Build"
55
- run : " pnpm run build"
54
+ - name : ' Build'
55
+ run : ' pnpm run build'
56
56
57
- - name : " Test"
58
- run : " pnpm run test"
57
+ - name : ' Test'
58
+ run : ' pnpm run test'
59
59
60
- - name : " Versioning"
61
- run : " pnpm exec lerna version ${{ github.event.inputs.next_version }} --no-push --force-publish --yes"
60
+ - name : ' Versioning'
61
+ run : ' pnpm exec lerna version ${{ github.event.inputs.next_version }} --no-push --force-publish --yes'
62
62
63
- - name : " Adjust PeerDependencies"
63
+ - name : ' Adjust PeerDependencies'
64
64
run : |
65
65
cd packages/angular && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}"
66
66
cd ../angular-material && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}" && pnpm pkg set peerDependencies.@jsonforms/angular="${{ github.event.inputs.next_version }}"
@@ -72,20 +72,20 @@ jobs:
72
72
cd ../vue-vanilla && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}" && pnpm pkg set peerDependencies.@jsonforms/vue="${{ github.event.inputs.next_version }}"
73
73
cd ../vue-vuetify && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}" && pnpm pkg set peerDependencies.@jsonforms/vue="${{ github.event.inputs.next_version }}"
74
74
75
- - name : " Tag and Commit"
75
+ - name : ' Tag and Commit'
76
76
run : |
77
77
git add -A && git commit --amend --no-edit
78
78
git tag v${{ github.event.inputs.next_version }} -f
79
79
80
- - name : " push"
81
- if : " github.event.inputs.skip_push == 'false'"
80
+ - name : ' push'
81
+ if : github.event.inputs.skip_push == 'false'
82
82
run : |
83
83
git push
84
84
git push origin v${{ github.event.inputs.next_version }}
85
85
86
- - name : " Publish to npm"
87
- if : " github.event.inputs.skip_publish == 'false'"
86
+ - name : ' Publish to npm'
87
+ if : github.event.inputs.skip_publish == 'false'
88
88
run : " pnpm publish --recursive ${{ github.event.inputs.stable_release == 'true' && ' ' || '--tag next' }}"
89
89
env :
90
- NODE_AUTH_TOKEN : " ${{ secrets.NPM_TOKEN }}"
91
- NPM_CONFIG_PROVENANCE : " true"
90
+ NODE_AUTH_TOKEN : ' ${{ secrets.NPM_TOKEN }}'
91
+ NPM_CONFIG_PROVENANCE : ' true'
0 commit comments