Skip to content

build workflow

build workflow #1

Workflow file for this run

name: Build NPM Package & Docker
on:
push:
branches: [ "main" ]
jobs:
test:
name: test
uses: './.github/workflows/test.yml'

Check failure on line 10 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build.yml" -> "./.github/workflows/test.yml" (source branch with sha:0aedad51927718726b33c1debb7af3e05e835032) : workflow is not reusable as it is missing a `on.workflow_call` trigger
build-docker:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag db-vendo-client:6
build-pkg:
needs: [test]
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}