Update GitHub Action github/codeql-action
to v3.27.5 (#5711)
#3416
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
## 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
token: ${{ secrets.MACHINE_USER_TOKEN }} | |
- uses: ./.github/actions/warm-up-repo | |
- name: Create Release Pull Request or Publish to npm | |
uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308 # v1.4.9 | |
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@c33737706dea87cd7784c687dadc9adf1be59990 | |
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 |