Skip to content

Commit 8ef2a36

Browse files
authored
Merge pull request #4 from MFB-Technologies-Inc/init-publish
Init publish
2 parents 9c00738 + f373ce8 commit 8ef2a36

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: publish
2+
3+
# Run when a new Github publish is released
4+
on:
5+
release:
6+
types: [released]
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "20"
19+
20+
- name: Install packages
21+
run: npm install
22+
23+
- name: Build project and dependencies
24+
run: npm run build
25+
26+
- name: Run unit tests and generate report
27+
run: npm run test:ci
28+
29+
- name: Publish package
30+
uses: JS-DevTools/npm-publish@v3
31+
with:
32+
token: ${{ secrets.NPM_TOKEN }}
33+
access: "public"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"check-formatting": "npx prettier --check src/",
1717
"test": "npx jest --watch",
1818
"test:ci": "npx jest --collectCoverage --forceExit",
19-
"package": "node ./scripts/package.js"
19+
"package": "node ./scripts/package.cjs"
2020
},
2121
"files": [
2222
"out/"
File renamed without changes.

0 commit comments

Comments
 (0)