Skip to content

Commit 0628b99

Browse files
committed
ci: Update actions and format publish.yaml
1 parent a2c87a0 commit 0628b99

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- windows-latest
2222
name: Run on ${{ matrix.os }}
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525

2626
- name: Setup node
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: 22
3030

.github/workflows/publish.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
name: "Publish"
1+
name: 'Publish'
22

33
on:
44
workflow_dispatch:
55
inputs:
66
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)'
99
required: true
1010
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'
1313
required: true
1414
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'
1717
required: true
1818
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)'
2121
required: true
2222

2323
jobs:
2424
publish:
2525
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'
2929
steps:
30-
- uses: "actions/checkout@v4"
30+
- uses: 'actions/checkout@v4'
3131
with:
32-
token: "${{ secrets.JSONFORMS_PUBLISH_PAT }}"
32+
token: '${{ secrets.JSONFORMS_PUBLISH_PAT }}'
3333

34-
- name: "Configure Git Credentials"
34+
- name: 'Configure Git Credentials'
3535
run: |
3636
git config user.name "jsonforms-publish[bot]"
3737
git config user.email "jsonforms-publish@eclipsesource.com"
3838
39-
- name: "Setup node"
40-
uses: "actions/setup-node@v3"
39+
- name: 'Setup node'
40+
uses: 'actions/setup-node@v4'
4141
with:
4242
node-version: '22'
4343
registry-url: 'https://registry.npmjs.org'
@@ -48,19 +48,19 @@ jobs:
4848
with:
4949
run_install: false
5050

51-
- name: "Install Packages"
52-
run: "pnpm i --frozen-lockfile"
51+
- name: 'Install Packages'
52+
run: 'pnpm i --frozen-lockfile'
5353

54-
- name: "Build"
55-
run: "pnpm run build"
54+
- name: 'Build'
55+
run: 'pnpm run build'
5656

57-
- name: "Test"
58-
run: "pnpm run test"
57+
- name: 'Test'
58+
run: 'pnpm run test'
5959

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'
6262

63-
- name: "Adjust PeerDependencies"
63+
- name: 'Adjust PeerDependencies'
6464
run: |
6565
cd packages/angular && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}"
6666
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:
7272
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 }}"
7373
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 }}"
7474
75-
- name: "Tag and Commit"
75+
- name: 'Tag and Commit'
7676
run: |
7777
git add -A && git commit --amend --no-edit
7878
git tag v${{ github.event.inputs.next_version }} -f
7979
80-
- name: "push"
81-
if: "github.event.inputs.skip_push == 'false'"
80+
- name: 'push'
81+
if: github.event.inputs.skip_push == 'false'
8282
run: |
8383
git push
8484
git push origin v${{ github.event.inputs.next_version }}
8585
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'
8888
run: "pnpm publish --recursive ${{ github.event.inputs.stable_release == 'true' && ' ' || '--tag next' }}"
8989
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

Comments
 (0)