File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : NPM publish
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ versionType :
6+ type : choice
7+ description : Version Type
8+ required : true
9+ options :
10+ - patch
11+ - minor
12+ - major
13+ permissions :
14+ id-token : write
15+ contents : write
16+ jobs :
17+ publish :
18+ name : Publishing to NPM
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Setup Node JS
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : 20
26+ registry-url : https://registry.npmjs.org
27+
28+ # Ensure npm 11.5.1 or later is installed
29+ - name : Update npm
30+ run : npm install -g npm@latest
31+ - run : npm ci
32+ -
run :
git config --global user.email "[email protected] " 33+ - run : git config --global user.name "y-infra"
34+ - run : npm run release -- --release-as ${{ github.event.inputs.versionType }}
35+ - run : npm publish
36+ - run : git push --follow-tags
You can’t perform that action at this time.
0 commit comments