File tree Expand file tree Collapse file tree
node_modules/.vite/vitest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : 20
18+ cache : npm
19+
20+ - run : npm ci
21+
22+ - run : npm run lint
23+
24+ - run : npm test
25+
26+ - run : npm run build
Original file line number Diff line number Diff line change 1+ name : Publish to npm
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ contents : read
9+ # Required for npm Trusted Publishing (OIDC)
10+ id-token : write
11+
12+ jobs :
13+ publish :
14+ runs-on : ubuntu-latest
15+ environment : npm-publish
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - uses : actions/setup-node@v4
20+ with :
21+ node-version : 20
22+ cache : npm
23+ registry-url : https://registry.npmjs.org
24+
25+ - run : npm ci
26+
27+ # prepublishOnly already runs lint + build + test
28+ - name : Publish with provenance
29+ run : npm publish --provenance --access public
30+ env :
31+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments