fix: use latest node in CI for semrel #9
This file contains 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
# SPDX-FileCopyrightText: 2024 The Forkbomb Company | |
# | |
# SPDX-License-Identifier: AGPL-3.0-or-later | |
name: Deploy and Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
permissions: | |
pages: write | |
id-token: write | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
deploy: | |
environment: | |
name: Demo | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/configure-pages@v5 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- run: bun install | |
- run: bun run build | |
- run: cp dist/index.html pqspread.html | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: dist | |
- uses: actions/deploy-pages@v4 | |
id: deployment | |
- run: bun add -g semantic-release | |
- run: bun add -D @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
- run: semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |