File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : NPM Publish
2+
3+ on :
4+ release :
5+ types : [created]
6+ workflow_dispatch :
7+
8+ env :
9+ NODE_VERSION : 16
10+ NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : ${{ env.NODE_VERSION }}
20+ - run : npm ci
21+ - run : npm test
22+
23+ publish :
24+ needs : build
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v4
28+ - uses : actions/setup-node@v4
29+ with :
30+ node-version : ${{ env.NODE_VERSION }}
31+ registry-url : https://registry.npmjs.org/
32+ - run : npm ci
33+ - run : npm publish --access public
Original file line number Diff line number Diff line change @@ -35,3 +35,6 @@ node_modules
3535
3636# Local-only
3737local
38+
39+ # `clangd` cache files
40+ .cache
Original file line number Diff line number Diff line change 22# See the root package.json's "files" for what is included.
33# npm5 ignores empty .npmignore files so add something trivial.
44/node_modules
5+ .travis.yml
6+ .last-synced-commit
7+ .github
8+ npm-debug.log
You can’t perform that action at this time.
0 commit comments