mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Since Meteor 3 is going to be running on Node.js 20 instead of 18, I'm updating the CI machines to run on Node 20 as well.
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
name: Meteor Guide PR
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'guide/**/*'
|
|
jobs:
|
|
preview:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: guide/
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 12.x
|
|
- name: Build the Guide
|
|
run: npm ci && npm run build
|
|
- name: Deploy to Netlify for preview
|
|
uses: nwtgck/actions-netlify@v1.2.4
|
|
with:
|
|
publish-dir: './guide/public'
|
|
production-branch: devel
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
deploy-message: Deploy from GitHub Actions ${{ github.event.pull_request.title }}
|
|
netlify-config-path: './guide/netlify.toml'
|
|
alias: deploy-preview-${{ github.event.number }}
|
|
enable-pull-request-comment: false
|
|
enable-commit-comment: false
|
|
env:
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GUIDE_SITE_ID }}
|