chore(deps-dev): bump @babel/eslint-parser from 7.22.7 to 7.22.9 #307
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: publish-release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-release: | |
if: github.triggering_actor != 'dependabot[bot]' | |
uses: mdn/workflows/.github/workflows/publish-release.yml@main | |
with: | |
npm-publish: ${{ false }} | |
target-repo: 'mdn/interactive-examples' | |
secrets: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
deploy: | |
runs-on: ubuntu-latest | |
needs: | |
- publish-release | |
steps: | |
- name: Checkout | |
if: needs.publish-release.outputs.release_created | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
if: needs.publish-release.outputs.release_created | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Install all npm packages | |
if: needs.publish-release.outputs.release_created | |
run: npm ci | |
- name: Build all | |
if: needs.publish-release.outputs.release_created | |
run: npm run build | |
- name: Deploy pages | |
if: needs.publish-release.outputs.release_created | |
run: | | |
git init | |
git config user.name "schalkneethling" | |
git config user.email "sneethling@mozilla.com" | |
git checkout -b prod | |
git add . | |
git commit --allow-empty -m "Deploying latest generated pages" | |
git remote add mdn "https://$GITHUB_TOKEN@github.com/mdn/interactive-examples.git" | |
# Eat output so it doesn't spit out the sensitive GITHUB_TOKEN if something goes wrong: | |
git push -q -f mdn prod > /dev/null 2>&1 |