name: Publish Package on: workflow_dispatch: inputs: package: description: 'The package short name to publish (i.e utils for @svta/cml-utils)' required: true jobs: publish: runs-on: ubuntu-latest permissions: contents: write id-token: write steps: - uses: actions/checkout@v5 with: submodules: true - uses: actions/setup-node@v5 with: node-version: 24 cache: 'npm' registry-url: 'https://registry.npmjs.org' scope: '@svta' - name: Install run: npm ci - name: Test run: npm test # This workflow cannot publish a package that is not on npm yet. # See "Publishing a New Package" in AGENTS.md. - name: Publish Package run: npm publish --provenance --access public -w libs/${{ inputs.package }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build Site run: npm run build -w site - name: Deploy Site uses: peaceiris/actions-gh-pages@v4 with: publish_dir: ./site/dist/ force_orphan: true personal_token: ${{ secrets.GH_ACTIONS }}