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@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 with: node-version: 24 cache: npm cache-dependency-path: sources/package-lock.json - name: Build distribution shell: bash run: | npm -v node -v npm install npm run build working-directory: sources - name: Copy the generated sources/dist directory to the top-level dist shell: bash run: | cp -r sources/dist . - name: Upload distribution uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 with: name: dist path: dist/