Merge pull request #22 from priyanshukumar397/snyk-fix-1bff704d2e7d00… #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |