Merge pull request #184 from zazuko/changeset-release/master #304
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: Netlify | |
on: push | |
jobs: | |
Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- run: npm ci | |
- uses: nelonoel/[email protected] | |
- run: npm i -g [email protected] | |
- name: Publish preview | |
uses: jsmrcaga/[email protected] | |
with: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
build_command: 'npx wsrun -mpc build' | |
build_directory: dist | |
monorepo_package: rdfjs-elements-demos | |
deploy_alias: ${{ env.BRANCH_NAME }} | |
NETLIFY_DEPLOY_TO_PROD: ${{ env.BRANCH_NAME }} == 'master' | |
- name: Status check | |
uses: Sibz/[email protected] | |
with: | |
authToken: ${{ secrets.GITHUB_TOKEN }} | |
context: Netlify Site | |
state: success | |
target_url: https://${{ env.BRANCH_NAME }}--rdfjs-elements.netlify.app |