Skip to content

Merge pull request #8 from LilyStilson/master #23

Merge pull request #8 from LilyStilson/master

Merge pull request #8 from LilyStilson/master #23

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "master", "actions" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Clone master"
uses: actions/checkout@v3
with:
ref: master
path: master
- name: "Clone compiler"
uses: actions/checkout@v3
with:
ref: compiler
path: compiler
- name: "Clone release"
uses: actions/checkout@v3
with:
ref: release
path: release
- name: "Install Node"
uses: actions/setup-node@v3
with:
node-version: latest
cache: 'npm'
cache-dependency-path: compiler/src/package-lock.json
- name: "Test and build scripts"
run: |
cd "compiler/src" || exit 1
npm i
npm run build
# - run: ls
# - uses: actions/checkout@v3
# with:
# ref: release
# token: ${{ secrets.GITHUB_TOKEN }}
- name: "Commit resulting build to release branch"
run: |
cd "release"
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git commit -m "Automatic commit, run id: ${{ github.run_id }}"
git push