chore: cleanup changesets

This commit is contained in:
Jamie Barton 2024-10-22 13:47:04 +01:00
parent f83c3915b0
commit e4bf36ac07
4 changed files with 15 additions and 31 deletions

View File

@ -1,15 +0,0 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [],
"privatePackages": {
"tag": true,
"version": true
}
}

View File

@ -27,13 +27,20 @@ jobs:
- name: Install Dependencies
run: composer install --no-progress --no-suggest --prefer-dist
- name: Create Release Pull Request or Publish to Packagist
id: changesets
uses: changesets/action@v1
- name: Run Tests
run: vendor/bin/phpunit
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
commit: "chore(release): version packages"
title: "chore(release): version packages"
publish: composer run release
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGIST_TOKEN: ${{ secrets.PACKAGIST_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}

View File

@ -44,10 +44,7 @@
}
},
"scripts": {
"test": "vendor/bin/phpunit tests",
"changeset": "changeset",
"version": "changeset version",
"release": "changeset publish"
"test": "vendor/bin/phpunit tests"
},
"minimum-stability": "stable",
"prefer-stable": true

View File

@ -1,5 +0,0 @@
{
"name": "@notrab/dumbo",
"private": true,
"version": "1.0.0"
}