File tree Expand file tree Collapse file tree 3 files changed +26
-14
lines changed
Expand file tree Collapse file tree 3 files changed +26
-14
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to NPM
2+
3+ author : Gabriel Montes
4+
5+ description : Sets up Node, runs the prepublishOnly script and publishes the package to the NPM registry
6+
7+ inputs :
8+ token :
9+ description : The NPM access token to use when publishing
10+ required : true
11+
12+ runs :
13+ using : composite
14+ steps :
15+ - uses : hemilabs/actions/setup-node-env@main
16+ - run : npm run --if-present prepublishOnly
17+ shell : bash
18+ - uses : JS-DevTools/npm-publish@v3
19+ with :
20+ token : ${{ inputs.token }}
21+
22+ branding :
23+ color : blue
24+ icon : package
Original file line number Diff line number Diff line change @@ -10,12 +10,4 @@ concurrency:
1010
1111jobs :
1212 run-checks :
13- runs-on : ubuntu-latest
14- steps :
15- - uses : actions/checkout@v4
16- - uses : actions/setup-node@v4
17- with :
18- node-version-file : .nvmrc
19- - run : npm ci
20- - run : npm run format:check
21- - run : npm run lint
13+ uses : hemilabs/actions/.github/workflows/js-checks.yml@main
Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v4
13- - uses : actions/setup-node@v4
14- with :
15- node-version-file : .nvmrc
16- - run : npm ci
17- - uses : JS-DevTools/npm-publish@v3
13+ - uses : ./.github/actions/publish-to-npm
1814 with :
1915 token : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments