Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintenance release workflow #93

Merged
merged 2 commits into from
Jul 28, 2023
Merged

Conversation

sasaplus1
Copy link
Member

@sasaplus1 sasaplus1 commented Jul 19, 2023

release のワークフローも古かったので直しました。release のワークフローは頻繁に試せるわけでないので修正後にきちんと動作するのかは少し不安ではあるのですが……

@sasaplus1 sasaplus1 self-assigned this Jul 19, 2023
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

バージョン上げ

@@ -15,39 +15,37 @@ jobs:
releasing:
name: releasing
runs-on: ubuntu-latest
timeout-minutes: 10
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

タイムアウト追加

Comment on lines +25 to +27
node-version: 18
cache: npm
registry-url: 'https://registry.npmjs.org'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • バージョン上げ
  • キャッシュを使う
  • .npmrc の設定をsetup-nodeにさせる

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nodeバージョン上げてますしリリースフロー確認がてらリリースしますか・・:eyes:

Comment on lines +30 to +31
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
Copy link
Member Author

@sasaplus1 sasaplus1 Jul 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitHub Actions のアカウントとして設定する(と、見た目がカッコイイ)

Comment on lines +44 to +49
gh pr create
--assignee
--base "${{ github.event.repository.default_branch }}"
--body ''
--head "${{ github.ref_name }}"
--title "chore(release): publish"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curlで頑張ってPOSTするよりかは現代ではghがあるのでそれを使う
https://github.com/peter-evans/create-pull-request を使うのでもよかったかもしれない

@sasaplus1 sasaplus1 requested review from herablog and tokimari July 19, 2023 01:17
@sasaplus1 sasaplus1 marked this pull request as ready for review July 19, 2023 01:17
Copy link
Contributor

@tokimari tokimari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

だいぶ変わりましたね・・:tada:

.github/workflows/release.yml Show resolved Hide resolved
Comment on lines +18 to +21
permissions:
contents: write
id-token: write
pull-requests: write
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#93 (comment) により追加しました。

Copy link
Contributor

@tokimari tokimari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

エンジニアを褒めるネコ:リリースしました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants