Skip to content

Commit

Permalink
Pass branch as env variable into changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
darrellwarde committed May 30, 2024
1 parent b900e09 commit 118d3ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ jobs:
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
with:
title: changesets for branch `${{ github.ref_name }}`
version: yarn changeset version --since ${{ github.ref_name }} && yarn
version: yarn changeset-version
publish: yarn 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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test:pr": "run-s lint test",
"test-docker": "docker-compose up --build --abort-on-container-exit",
"prepare": "husky",
"changeset-version-dev": "changeset version --since dev && yarn",
"changeset-version": "changeset version --since $BRANCH && yarn",
"release": "yarn build && changeset publish"
},
"devDependencies": {
Expand Down

0 comments on commit 118d3ca

Please sign in to comment.