Publish trame client to npmjs #50
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 trame client to npmjs | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| environment: | |
| name: npmjs | |
| permissions: | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| # Setup .npmrc file to publish to npm | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: ./js-lib | |
| - name: Type check library | |
| run: npm run typecheck | |
| working-directory: ./js-lib | |
| - name: Build library | |
| run: npm run build | |
| working-directory: ./js-lib | |
| - name: Publish library | |
| run: npm publish --provenance --access public | |
| working-directory: ./js-lib | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |