Merge pull request #363 from mskian/renovate/rollup-plugin-node-resol… #369
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
name: cloudflare-pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [ '18' ] | |
name: Node ${{ matrix.node }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Cache node modules | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.OS }}-build-${{ env.cache-name }}- | |
${{ runner.OS }}-build- | |
${{ runner.OS }}- | |
- uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- run: yarn install | |
- run: yarn css | |
- run: yarn build | |
- name: Deploy to cloudflare pages | |
run: | | |
npm install wrangler -g | |
wrangler pages deploy public --project-name=pronounce --commit-dirty=true | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} |