-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (35 loc) · 1.09 KB
/
changesets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 '[email protected]'
- 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 }}