Skip to content

chore(release): xHD Wallet API #5

chore(release): xHD Wallet API

chore(release): xHD Wallet API #5

name: Publish
on:
push:
branches:
- main
- release/1.x
workflow_dispatch:
concurrency: release
permissions:
contents: write
issues: write
checks: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
issues: write
contents: write
packages: write
pull-requests: write
id-token: write
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.BOT_ID }}
private-key: ${{ secrets.BOT_SK }}
- uses: actions/checkout@v3
with:
token: ${{ steps.app-token.outputs.token }}
# semantic-release needs node 20
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: "Build"
run: npm run build
- name: "Semantic release"
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Merge Release -> Trunk
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f
if: github.ref == 'refs/heads/release/1.x'
with:
type: now
from_branch: release/1.x
target_branch: main
github_token: ${{ steps.app-token.outputs.token }}