chore: npm updates #48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - next | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| env: | |
| SSH_SIGNING_KEY: ${{ secrets.SSH_SIGNING_KEY }} | |
| steps: | |
| - name: Generate token | |
| id: generate_token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.UNBKBOT_APPID }} | |
| private-key: ${{ secrets.UNBKBOT_KEY }} | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ steps.generate_token.outputs.token }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| check-latest: true | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build | |
| # Temporarily disabled SSH signing to debug hang issue | |
| # - name: Setup SSH Signing | |
| # if: env.SSH_SIGNING_KEY != '' | |
| # run: | | |
| # mkdir -p ~/.ssh | |
| # echo "$SSH_SIGNING_KEY" > ~/.ssh/signing_key | |
| # chmod 600 ~/.ssh/signing_key | |
| # git config --global gpg.format ssh | |
| # git config --global user.signingkey ~/.ssh/signing_key | |
| # git config --global commit.gpgsign true | |
| # git config --global tag.gpgsign true | |
| - name: Release | |
| timeout-minutes: 5 | |
| env: | |
| GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
| run: npx semantic-release |