memo layout to not reset view on click #2
Workflow file for this run
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 the Javascript lib on NPM | |
| on: | |
| push: | |
| tags: | |
| - "js-v*" | |
| jobs: | |
| publish_npm: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'materialscloud-org/interactive-phonon-visualizer' | |
| defaults: | |
| run: | |
| working-directory: mc-react-phonon-visualizer | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| registry-url: "https://registry.npmjs.org/" | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Publish to npm | |
| run: npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |