File tree Expand file tree Collapse file tree 3 files changed +4445
-1
lines changed
Expand file tree Collapse file tree 3 files changed +4445
-1
lines changed Original file line number Diff line number Diff line change 1+ # GitHub Actions workflow for publishing apon.js to npm
2+ # This workflow runs when a new release is created on GitHub.
3+
4+ name : Publish to npm
5+
6+ on :
7+ release :
8+ types : [created]
9+
10+ jobs :
11+ publish-to-npm :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+
17+ - name : Set up Node.js
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : 20
21+ registry-url : ' https://registry.npmjs.org/' # Use the official npm registry
22+
23+ - name : Install dependencies
24+ run : npm install
25+
26+ - name : Run tests
27+ run : npm test
28+
29+ - name : Publish to npm
30+ run : npm publish
31+ env :
32+ # Use the secret token you configured in the repository settings
33+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 22/.idea
33
44node_modules
5- package-lock.json
65yarn.lock
76.DS_Store
You can’t perform that action at this time.
0 commit comments