Skip to content

Update GitHub Action codecov/codecov-action to v4.4.0 (#4466) #2275

Update GitHub Action codecov/codecov-action to v4.4.0 (#4466)

Update GitHub Action codecov/codecov-action to v4.4.0 (#4466) #2275

Workflow file for this run

## Using MACHINE_USER_TOKEN enables GitHub Workflows in ‘Version Packages’ PRs
## https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
if: github.repository == 'hashintel/hash'
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
with:
token: ${{ secrets.MACHINE_USER_TOKEN }}
- uses: ./.github/actions/warm-up-repo
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
with:
publish: yarn changeset publish
env:
GITHUB_TOKEN: ${{ secrets.MACHINE_USER_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Notify Slack on failure
uses: rtCamp/action-slack-notify@19c86e40d4bc3be986b18f1459d4549536887065
if: ${{ failure() }}
env:
SLACK_LINK_NAMES: true
SLACK_MESSAGE: "Error releasing NPM packages <@U0143NL4GMP> <@U027NPY8Y3X>"
SLACK_TITLE: Package release failed
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_USERNAME: GitHub