ci: test clean action #6
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: Publish to NPM TEST | |
| on: | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| publish_job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| fetch-depth: 0 | |
| submodules: true | |
| token: ${{ secrets.PAT_GITHUB }} | |
| - name: Checkout Rive Renderer Repo | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| repository: rive-app/rive-renderer | |
| token: ${{ secrets.PAT_GITHUB }} | |
| path: ./wasm/submodules/rive-renderer | |
| ref: main | |
| - name: Setup Git config | |
| run: | | |
| git config --local user.email '[email protected]' | |
| git config --local user.name ${{ github.actor }} | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: "20.x" | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Install modules | |
| run: cd js && npm install | |
| - name: Setup Ninja | |
| uses: seanmiddleditch/gha-setup-ninja@master | |
| - name: Install Emscripten SDK | |
| run: ./get_emcc.sh | |
| working-directory: ./wasm | |
| - name: Minor release test | |
| run: npm run release:minor | |
| working-directory: ./js | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| PAT_GITHUB: ${{ secrets.PAT_GITHUB }} | |
| - name: Build | |
| run: ./build.sh | |
| working-directory: ./js | |
| - name: Run tests | |
| run: npm test | |
| working-directory: ./js | |
| - name: Publish | |
| run: echo actionally publish! | |
| working-directory: ./js | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| PAT_GITHUB: ${{ secrets.PAT_GITHUB }} |