Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh
30 linesCodeBlameRaw
1name: Publish package
2on:
3 release:
4 types: [created]
5jobs:
6 build:
7 runs-on: ubuntu-latest
8 steps:
9 - uses: actions/checkout@v4
10 - uses: actions/setup-node@v4
11 with:
12 node-version: 22
13 - run: npm ci
14 - run: npm test
15 publish-npm:
16 needs: build
17 runs-on: ubuntu-latest
18 permissions:
19 contents: read
20 id-token: write
21 steps:
22 - uses: actions/checkout@v4
23 - uses: actions/setup-node@v4
24 with:
25 node-version: 22
26 registry-url: https://registry.npmjs.org/
27 - run: npm ci
28 - run: npm publish --provenance
29 env:
30 NODE_AUTH_TOKEN: ${{secrets.npm_token}}