-
Notifications
You must be signed in to change notification settings - Fork 104
48 lines (39 loc) · 1.09 KB
/
release-preview.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release Preview
on:
push:
tags-ignore:
- '**'
branches:
- 'main'
paths-ignore:
- 'docs*/**'
- '*.md'
concurrency:
group: ${{github.workflow}}-${{github.head_ref}}
cancel-in-progress: false
env:
CI: true
jobs:
version:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN_WORKFLOW_PUBLISH }}
- uses: ./.github/actions/node
with:
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install
run: pnpm install --frozen-lockfile --filter='wundergraph-cosmo'
- name: Generate next release (dry-run)
run: pnpm run release-preview --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Show CHANGELOG.md
run: echo -e "\`\`\`diff\n$(git --no-pager diff './*/CHANGELOG.md')\n\`\`\`" >> $GITHUB_STEP_SUMMARY