Skip to content

chore(deps): update dependency @types/node to v22.9.2 (#5840) #1679

chore(deps): update dependency @types/node to v22.9.2 (#5840)

chore(deps): update dependency @types/node to v22.9.2 (#5840) #1679

Workflow file for this run

name: changesets
on:
push:
branches:
- dev
- lts
- '*.*.*'
- '*.x'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment:
name: npm
outputs:
published: ${{ steps.changesets.outputs.published }}
published-packages: ${{ steps.changesets.outputs.publishedPackages }}
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: lts/*
- name: Install Dependencies
run: yarn
- name: Configure git
run: |
git config --global user.name 'Neo4j Team GraphQL'
git config --global user.email '[email protected]'
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
@neo4j:registry https://registry.npmjs.org
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create release PR or release
id: changesets
uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308 # v1.4.9
with:
title: changesets for branch `${{ github.ref_name }}`
version: yarn changeset-version
publish: yarn ${{ github.ref_name == 'lts' && 'release-lts' || 'release' }}
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.NEO4J_TEAM_GRAPHQL_PERSONAL_ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_ENABLE_IMMUTABLE_INSTALLS: false
BRANCH: ${{ github.ref_name }}
slack-notify:
needs:
- release
if: ${{ needs.release.outputs.published == 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
package: ${{ fromJson(needs.release.outputs.published-packages) }}
steps:
- name: Send Slack announcement of release
if: matrix.package.name == '@neo4j/graphql'
uses: slackapi/slack-github-action@fcfb566f8b0aab22203f066d80ca1d7e4b5d05b3 # v1.27.1
with:
payload: '{"version":"${{ matrix.package.version }}"}'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_ANNOUNCEMENT_WEBHOOK_URL }}