Skip to content

Commit

Permalink
Merge pull request #14 from chizmw/use-changesets
Browse files Browse the repository at this point in the history
migrate to changesets (from changie)
  • Loading branch information
chizmw authored Jul 25, 2023
2 parents 0c699ea + 270f2d6 commit 67c27b2
Show file tree
Hide file tree
Showing 27 changed files with 2,272 additions and 260 deletions.
28 changes: 0 additions & 28 deletions .changes/0.0.2.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/0.0.3.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changes/0.0.4.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changes/0.0.5.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/0.0.6.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/0.0.7.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changes/0.0.8.md

This file was deleted.

1 change: 0 additions & 1 deletion .changes/0.0.9.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changes/header.tpl.md

This file was deleted.

Empty file removed .changes/unreleased/.gitkeep
Empty file.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@svitejs/changesets-changelog-github-compact",
{ "repo": "chizmw/json-on-the-clocktower" }
],
"commit": true,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/rude-foxes-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'json-on-the-clocktower': patch
---

add missing pytest dependency
5 changes: 5 additions & 0 deletions .changeset/thirty-donuts-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'json-on-the-clocktower': patch
---

migrate to changesets (from changie)
49 changes: 0 additions & 49 deletions .changie.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/changelog-info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
# .github/workflows/auto-author-assign.yml
name: Peek At Changelog Info

# yamllint disable-line rule:truthy
on:
- pull_request

jobs:
changelog-peek:
name: Changeset Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Get Change Info
uses: chizmw/[email protected]
id: get-changelog-entry

- name: Show Change Info
shell: bash
# yamllint disable rule:line-length
run: |
cat <<'EOInfo' >> $GITHUB_STEP_SUMMARY
## Last Change Entry
```markdown
${{ steps.get-changelog-entry.outputs.last-change-entry }}
```
EOInfo
- name: Fail If Empty
if: steps.get-changelog-entry.outputs.last-change-entry == ''
run: exit
52 changes: 52 additions & 0 deletions .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: Changeset Release

# yamllint disable rule:truthy
on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions: read-all

jobs:
release:
# IMPORTANT: prevent this action from running on forks
if: github.repository == 'chizmw/changeset-sandbox'
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
name: Changeset Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
token: ${{ secrets.CHANGESETS_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_TOKEN }}
with:
title: Release Changeset (bake CHANGELOG.md)

- name: Push Tags
# https://github.com/changesets/action#custom-publishing
if: steps.changesets.outputs.hasChangesets == 'false'
shell: bash
run: |
version="$(cat package.json | jq -r '.version')"
git tag "v$version"
git push --tags
92 changes: 0 additions & 92 deletions .github/workflows/create-release.yml

This file was deleted.

Loading

0 comments on commit 67c27b2

Please sign in to comment.