File: publish_js_lib.yaml

package info (click to toggle)
python-trame-client 3.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,128 kB
  • sloc: python: 9,609; javascript: 3,897; sh: 9; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Publish trame client to npmjs
on:
  push:
    branches: [master]
jobs:
  build:
    permissions:
      id-token: write
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      # Setup .npmrc file to publish to npm
      - uses: actions/setup-node@v4
        with:
          node-version: "20.x"
          registry-url: "https://registry.npmjs.org"
      - name: Install dependencies
        run: npm ci
        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 }}