Merge pull request #430 from proto-kit/feat/test-compile-script #92
This file contains hidden or 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: Release NPM Packages | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| sha: | |
| description: 'Current git sha for the website to pull from' | |
| required: true | |
| push: | |
| branches: | |
| - develop | |
| permissions: | |
| id-token: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| environment: develop | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.9.0 | |
| cache: npm | |
| - name: "Install dependencies" | |
| run: npm ci --workspaces --include-workspace-root | |
| - name: "Build" | |
| run: npm run build | |
| - name: "Publish nightly" | |
| run: npx pkg-pr-new publish './packages/*' | |
| - name: Trigger website build & deployment | |
| env: | |
| NETLIFY_BUILD_HOOK: ${{ secrets.NETLIFY_BUILD_HOOK }} | |
| run: | | |
| curl -X POST -d {} $NETLIFY_BUILD_HOOK |