Skip to content

Commit 8dbee9e

Browse files
committed
chore(ci): improve scripts
1 parent fe18725 commit 8dbee9e

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,22 @@ jobs:
1010
demo:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Install pnpm
1818
uses: pnpm/[email protected]
1919

2020
- name: Use Node.js v16
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: v16
2424
registry-url: https://registry.npmjs.org/
2525
cache: "pnpm"
2626

2727
- run: pnpm i && cd packages/schema-org && pnpm build
28+
- run: cd packages/vite && pnpm build
2829
- run: cd ./playgrounds/nuxt3/ && pnpm install
2930

3031
- name: Install Docs Dependencies

.github/workflows/release.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,20 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
1515

1616
- name: Install pnpm
1717
uses: pnpm/[email protected]
1818

1919
- name: Use Node.js v16
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v3
2121
with:
2222
node-version: v16
2323
registry-url: https://registry.npmjs.org/
2424
cache: pnpm
2525

26-
- run: export DEBUG=conventional-github-releaser && npx conventional-github-releaser -p angular
27-
continue-on-error: false
28-
env:
29-
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
30-
3126
- run: pnpm i && cd packages/schema-org && pnpm build
3227
- run: cd packages/vite && pnpm build
3328
- run: cd ./playgrounds/nuxt3/ && pnpm install
@@ -39,3 +34,14 @@ jobs:
3934
run: pnpm -r publish --access public --no-git-checks
4035
env:
4136
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37+
38+
- name: Release Notes
39+
run: npx changelogen@latest > ${{ github.workspace }}-CHANGELOG.md
40+
41+
- name: Trim Release Notes and debug
42+
run: sed -i '1d;2d' ${{ github.workspace }}-CHANGELOG.md && cat ${{ github.workspace }}-CHANGELOG.md
43+
44+
- name: Push release
45+
uses: softprops/action-gh-release@v1
46+
with:
47+
body_path: ${{ github.workspace }}-CHANGELOG.md

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ jobs:
2121
fail-fast: false
2222

2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2525

2626
- name: Install pnpm
2727
uses: pnpm/[email protected]
2828

2929
- name: Use Node.js ${{ matrix.node-version }}
30-
uses: actions/setup-node@v2
30+
uses: actions/setup-node@v3
3131
with:
3232
node-version: ${{ matrix.node-version }}
3333
registry-url: https://registry.npmjs.org/
34-
cache: "pnpm"
34+
cache: pnpm
3535

3636
- run: pnpm i && cd packages/schema-org && pnpm build
3737
- run: cd packages/vite && pnpm build

0 commit comments

Comments
 (0)