name: 'Build and upload distribution'
# Builds the action distribution an uploads as an artifact for later download
runs:
  using: "composite"
  steps: 
    - uses: actions/setup-node@v4
      with:
        node-version: 20
    - name: Build distribution
      shell: bash
      run: |
        npm -v
        node -v
        npm install
        npm run build
      working-directory: sources
    - name: Upload distribution
      uses: actions/upload-artifact@v4
      with:
        name: dist
        path: dist/
