Skip to content

build(deps-dev): bump typescript from 5.5.2 to 5.6.2 #207

build(deps-dev): bump typescript from 5.5.2 to 5.6.2

build(deps-dev): bump typescript from 5.5.2 to 5.6.2 #207

Workflow file for this run

name: Build and Deploy to Netlify and Cloudflare Pages
on:
push:
jobs:
build:
runs-on: ubuntu-20.04
permissions:
contents: read
deployments: write
statuses: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './dist'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
- name: Publish to Cloudflare Pages
id: cloudflare_pages_deploy
uses: cloudflare/pages-action@1
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: piping-ssh
directory: ./dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Add publish URL as commit status
uses: actions/github-script@v7
with:
script: |
// When "pull_request", context.payload.pull_request?.head.sha is expected SHA.
// (base: https://github.community/t/github-sha-isnt-the-value-expected/17903/2)
const sha = context.payload.pull_request?.head.sha ?? context.sha;
await github.rest.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
context: 'Cloudflare Pages',
description: 'Cloudflare Pages deployment',
state: 'success',
sha,
target_url: "${{ steps.cloudflare_pages_deploy.outputs.url }}",
});