publish.yml (861B)
1 --- 2 3 name: Test and publish 4 5 on: 6 push: 7 branches: 8 - main 9 10 jobs: 11 build: 12 13 runs-on: ubuntu-latest 14 15 permissions: 16 id-token: write 17 18 strategy: 19 matrix: 20 node-version: [24] 21 22 steps: 23 - uses: actions/checkout@v3 24 25 - uses: actions/setup-node@v4 26 with: 27 node-version: ${{ matrix.node-version }} 28 registry-url: 'https://registry.npmjs.org' 29 30 - name: Install @finwo/dep 31 uses: finwo/dep@edge 32 33 - name: Set up Clang 34 run: | 35 sudo apt update 36 sudo apt install -yq clang llvm lld 37 38 - name: build wasm component 39 run: | 40 dep i 41 make 42 43 - name: npm install and npm test 44 run: | 45 npm install 46 npm test 47 48 - name: npm publish 49 run: | 50 npm publish 51 env: 52 CI: true