Skip to content

chore(deps): update dependency hast-util-to-html to v9.0.3 (#386) #379

chore(deps): update dependency hast-util-to-html to v9.0.3 (#386)

chore(deps): update dependency hast-util-to-html to v9.0.3 (#386) #379

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
has_changesets: ${{ steps.changesets.outputs.hasChangesets }}
steps:
- uses: actions/[email protected]
- name: Setup Node.js
uses: re-taro/actions/[email protected]
with:
node-version-file: .tool-versions
- name: Setup GitHub App
id: bot
uses: re-taro/actions/[email protected]
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Create Release Pull Request
id: changesets
uses: changesets/[email protected]
with:
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ steps.bot.outputs.token }}
- name: Revoke GitHub Apps token
env:
GITHUB_TOKEN: ${{ steps.bot.outputs.token }}
run: |
curl --location --silent --request DELETE \
--url "${GITHUB_API_URL}/installation/token" \
--header "Accept: application/vnd.github+json" \
--header "X-GitHub-Api-Version: 2022-11-28" \
--header "Authorization: Bearer ${GITHUB_TOKEN}"
deploy:
name: Deploy
needs: release
runs-on: ubuntu-latest
if: ${{ needs.release.outputs.has_changesets == 'false' }}
permissions:
contents: read
steps:
- uses: actions/[email protected]
- name: Setup Node.js
uses: re-taro/actions/[email protected]
with:
node-version-file: .tool-versions
- name: Deploy | Build
run: pnpm build
- name: Deploy | Deploy to Cloudflare Pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages deploy --project-name blog --directory dist