-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 1.24 KB
/
release-dry-run.yml
File metadata and controls
34 lines (32 loc) · 1.24 KB
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
name: Release (dry run)
on:
pull_request:
types:
- opened
- synchronize
permissions:
contents: write
jobs:
release-dry-run:
name: 'Release (dry run)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: technology-studio/github-workflows/.github/actions/install-dependencies@main
- run: yarn test --coverage
- uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5
- run: |
echo "PR_HEAD_REF=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
- run: GITHUB_ACTIONS="" yarn semantic-release --extends ./.releaserc.dryrun.js
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_DRY_RUN_NPM_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }}
- name: Send a Slack message on failure
if: failure()
uses: technology-studio/github-workflows/.github/actions/slack-failed-job-message@main
with:
slack_bot_token: ${{ secrets.TXO_SLACK_BOT_APP_TOKEN }}
channel_id: ${{ secrets.TXO_SLACK_GITHUB_OPS_CHANNEL_ID }}