Skip to content

Commit ceca6f3

Browse files
committed
Update
1 parent 633799f commit ceca6f3

File tree

3 files changed

+4445
-1
lines changed

3 files changed

+4445
-1
lines changed

.github/workflows/publish-npm.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
/.idea
33

44
node_modules
5-
package-lock.json
65
yarn.lock
76
.DS_Store

0 commit comments

Comments
 (0)