Skip to content

Commit

Permalink
Merge pull request #16 from izumin5210/releases/0.2.0
Browse files Browse the repository at this point in the history
Release v0.2.0
  • Loading branch information
izumin5210 committed Sep 13, 2021
2 parents 9c5bd7a + d68f69e commit f43d9f1
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 25 deletions.
23 changes: 0 additions & 23 deletions .github/actions/create-release-and-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,6 @@ runs:
with:
get-version: ${{ inputs.get-version }}

- name: Setup git
shell: bash
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
env:
GITHUB_TOKEN: ${{ inputs.github-token }}

- name: Update CHANGELOG.md
shell: bash
run: |
mkdir -p tmp
echo "${RELEASE_NOTE}" > tmp/CHANGELOG.head.md
git show ${{ github.base_ref }}:./CHANGELOG.md > tmp/CHANGELOG.base.md
cat -s tmp/CHANGELOG.head.md tmp/CHANGELOG.base.md > CHANGELOG.md
git add CHANGELOG.md
git commit -m "Update CHANGELOG for ${RELEASE_TAG}"
git push
env:
RELEASE_TAG: ${{ steps.release-meta.outputs.tag }}
RELEASE_NOTE: ${{ steps.release-meta.outputs.note }}

- name: Create GitHub Release
uses: actions/github-script@v4
with:
Expand Down
24 changes: 24 additions & 0 deletions .github/actions/generate-changelog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,27 @@ runs:
env:
RELEASE_NOTE: ${{ steps.release-meta.outputs.note }}
RELEASE_TAG: ${{ steps.release-meta.outputs.tag }}

- name: Setup git
shell: bash
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}
env:
GITHUB_TOKEN: ${{ inputs.github-token }}

- name: Update CHANGELOG.md
shell: bash
run: |
mkdir -p tmp
echo "${RELEASE_NOTE}" > tmp/CHANGELOG.head.md
git show ${{ github.event.pull_request.base.sha }}:./CHANGELOG.md > tmp/CHANGELOG.base.md
cat -s tmp/CHANGELOG.head.md tmp/CHANGELOG.base.md > CHANGELOG.md
git checkout ${{ github.event.pull_request.head.ref }}
git add CHANGELOG.md
git commit -m "Update CHANGELOG for ${RELEASE_TAG}"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
env:
RELEASE_TAG: ${{ steps.release-meta.outputs.tag }}
RELEASE_NOTE: ${{ steps.release-meta.outputs.note }}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [closed]

permissions:
contents: write
contents: read
pull-requests: write
packages: write

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main]

permissions:
contents: read
contents: write
pull-requests: write

jobs:
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

## 0.2.0 (2021-09-13)

#### :rocket: Enhancement
* [#11](https://github.com/izumin5210/graphql-fragment-mask/pull/11) Return null when input is null ([@izumin5210](https://github.com/izumin5210))
* [#8](https://github.com/izumin5210/graphql-fragment-mask/pull/8) Support (non-typed) `DocumentNode` ([@izumin5210](https://github.com/izumin5210))
* [#5](https://github.com/izumin5210/graphql-fragment-mask/pull/5) Improve typing and check types on test ([@izumin5210](https://github.com/izumin5210))

#### :memo: Documentation
* [#9](https://github.com/izumin5210/graphql-fragment-mask/pull/9) Update documents ([@izumin5210](https://github.com/izumin5210))

#### :house: Internal
* [#12](https://github.com/izumin5210/graphql-fragment-mask/pull/12) Fix typo in release script ([@izumin5210](https://github.com/izumin5210))
* [#10](https://github.com/izumin5210/graphql-fragment-mask/pull/10) Stop using lerna on release workflow ([@izumin5210](https://github.com/izumin5210))
* [#7](https://github.com/izumin5210/graphql-fragment-mask/pull/7) Setup release automation ([@izumin5210](https://github.com/izumin5210))
* [#6](https://github.com/izumin5210/graphql-fragment-mask/pull/6) Fix tsconfig for type-checking for tests ([@izumin5210](https://github.com/izumin5210))
* [#4](https://github.com/izumin5210/graphql-fragment-mask/pull/4) Call coveralls parallel-finished on CI ([@izumin5210](https://github.com/izumin5210))

#### Committers: 1
- Masayuki Izumi ([@izumin5210](https://github.com/izumin5210))

0 comments on commit f43d9f1

Please sign in to comment.