Skip to content

Update npm package rollup to v4.24.0 (#5307) #3024

Update npm package rollup to v4.24.0 (#5307)

Update npm package rollup to v4.24.0 (#5307) #3024

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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
token: ${{ secrets.MACHINE_USER_TOKEN }}
- uses: ./.github/actions/warm-up-repo
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@3de3850952bec538fde60aac71731376e57b9b57 # v1.4.8
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@c318f0a93a2bbf24828a21c271765cb9a5c92727
if: ${{ failure() }}
env:
SLACK_LINK_NAMES: true
SLACK_MESSAGE: "Error releasing NPM packages <@U0143NL4GMP>" # Notifies C
SLACK_TITLE: Package release failed
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_USERNAME: GitHub