Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 7 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,19 @@ jobs:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
contents: write
steps:

- name: Generate GitHub app token
id: generate_app_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.HYPER_SDK_APP_ID }}
private-key: ${{ secrets.HYPER_SDK_APP_PRIVATE_KEY }}

- name: Checkout code
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ steps.generate_app_token.outputs.token }}
fetch-depth: ${{ github.event.pull_request.commits }}
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "24.11.0"
registry-url: "https://registry.npmjs.org"
always-auth: true

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand All @@ -57,27 +47,6 @@ jobs:
shopt -u nocasematch
shell: bash

- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v5.1.0
with:
github-token: ${{ steps.generate_app_token.outputs.token }}
release-count: 0
skip-version-file: "true"
skip-commit: "true"
git-push: "false"
skip-tag: "true"
skip-bump: "true"
output-file: "false"

- name: Stash changes
run: git reset --hard

- name: git config
run: |
git config --local user.name 'hyper-sdk-app[bot]'
git config --local user.email '163947841+hyper-sdk-app[bot]@users.noreply.github.com'

- name: Run standard version
id: standard-version
run: |
Expand All @@ -86,17 +55,14 @@ jobs:

- name: Push tags and changelog
run: git push --follow-tags origin main
env:
GH_TOKEN: ${{ steps.generate_app_token.outputs.token }}

- name: create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ steps.generate_app_token.outputs.token }}
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: "${{ steps.standard-version.outputs.tag_name }}"
release_name: "${{ steps.standard-version.outputs.tag_name }}"
body: "${{ steps.changelog.outputs.clean_changelog }}"
name: "${{ steps.standard-version.outputs.tag_name }}"
body: "Release notes generated by standard-version"
draft: false

- name: Publish package on NPM 📦
run: npm publish --access public --tag latest