Skip to content

Commit 1447886

Browse files
committed
further changes
1 parent d7186c6 commit 1447886

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/publish.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
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
stable_release:
11-
type: 'boolean'
12-
default: false
13-
description: 'mark in case this is a full stable release'
11+
type: "boolean"
12+
description: "mark in case this is a full stable release"
1413
required: true
14+
1515
jobs:
1616
publish:
17-
runs-on: ubuntu-latest
17+
runs-on: "ubuntu-latest"
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: "actions/checkout@v3"
2020

21-
- name: Configure Git Credentials
21+
- name: "Configure Git Credentials"
2222
run: |
23-
git config user.name github-actions[bot]
24-
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
23+
git config user.name "github-actions[bot]"
24+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
2525
26-
- name: Setup node
27-
uses: actions/setup-node@v3
26+
- name: "Setup node"
27+
uses: "actions/setup-node@v3"
2828
with:
29-
node-version: 16
30-
registry-url: 'https://registry.npmjs.org'
29+
node-version: "16"
30+
registry-url: "https://registry.npmjs.org"
3131

32-
- uses: pnpm/[email protected]
33-
name: Install pnpm
34-
id: pnpm-install
32+
- uses: "pnpm/[email protected]"
33+
name: "Install pnpm"
34+
id: "pnpm-install"
3535
with:
36-
version: 8
36+
version: "8"
3737
run_install: false
3838

39-
- name: Install Packages
40-
run: pnpm i --frozen-lockfile
39+
- name: "Install Packages"
40+
run: "pnpm i --frozen-lockfile"
4141

42-
- name: Build
43-
run: pnpm run build
42+
- name: "Build"
43+
run: "pnpm run build"
4444

45-
- name: Test
46-
run: pnpm run test
45+
- name: "Test"
46+
run: "pnpm run test"
4747

48-
- name: Versioning
49-
run: pnpm exec lerna version ${{ github.event.inputs.next_version }} --no-push --force-publish -y
48+
- name: "Versioning"
49+
run: "pnpm exec lerna version ${{ github.event.inputs.next_version }} --no-push --force-publish -y"
5050

51-
- name: Adjust PeerDependencies
51+
- name: "Adjust PeerDependencies"
5252
run: |
5353
cd packages/angular && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}"
5454
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 }}"
@@ -59,17 +59,17 @@ jobs:
5959
cd ../vue && pnpm pkg set peerDependencies.@jsonforms/core="${{ github.event.inputs.next_version }}"
6060
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 }}"
6161
62-
- name: Tag and Commit
62+
- name: "Tag and Commit"
6363
run: |
6464
git add -A && git commit --amend --no-edit
6565
git tag v${{ github.event.inputs.next_version }} -f
6666
67-
- name: Publish to npm
68-
run: pnpm exec lerna publish from-git ${{ github.event.inputs.stable_release == 'false' && '--dist-tag next' }}
67+
- name: "Publish to npm"
68+
run: "pnpm exec lerna publish from-git ${{ github.event.inputs.stable_release == 'true' && ' ' || '--dist-tag next' }}"
6969
env:
70-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
70+
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
7171

72-
- name: push
72+
- name: "push"
7373
run: |
7474
git push
7575
git push origin v${{ github.event.inputs.next_version }}

0 commit comments

Comments
 (0)