fix: makefile #5
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: 'build' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (GitHub) | |
uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and run Dev Container task | |
uses: devcontainers/ci@v0.3 | |
with: | |
# Change this to point to your image name | |
imageName: ghcr.io/sakin97/devcontainer | |
cacheFrom: ghcr.io/sakin97/devcontainer | |
# Change this to be your CI task/script | |
runCmd: | | |
# Add multiple commands to run if needed | |
npm ci | |
npm run build |