Merge pull request #8 from neo4j/changeset-release/main #13
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
name: changesets | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node.js 20 | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 | |
with: | |
node-version: lts/* | |
- name: Install Dependencies | |
run: npm install | |
- name: Configure git | |
run: | | |
git config --global user.name 'Neo4j Team GraphQL' | |
git config --global user.email 'team-graphql@neotechnology.com' | |
- name: Create Release Pull Request | |
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7 | |
with: | |
title: changesets for branch `${{ github.ref_name }}` | |
version: npm run changeset-version | |
publish: npm run release | |
setupGitUser: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.TEAM_GRAPHQL_PERSONAL_ACCESS_TOKEN }} |