File tree Expand file tree Collapse file tree 3 files changed +11
-47
lines changed Expand file tree Collapse file tree 3 files changed +11
-47
lines changed Original file line number Diff line number Diff line change 1515
1616jobs :
1717 build_and_publish :
18- runs-on : ubuntu-latest
19- permissions :
20- contents : write
21-
22- steps :
23- - name : Checkout 💼
24- uses : actions/checkout@v4
25-
26- - name : Install Node.js 🧩
27- uses : actions/setup-node@v4
28- with :
29- node-version : ' 20'
30-
31- - name : Check for critical vulnerabilities 🔎
32- run : npm audit --audit-level critical --omit=dev
33-
34- - name : Install dependencies 📦
35- run : npm ci
36-
37- - name : Run tests 🧪
38- run : npm test
39-
40- - name : Build 🏗️
41- run : npm run build
42-
43- - name : Bump version 📈
44- id : version
45- run : |
46- git config --local user.email "[email protected] " 47- git config --local user.name "GitHub Action"
48- NEW_VERSION=$(npm version ${{ inputs.version }} --message $'Update version to %s\n\nAutomated version bump by GitHub Action.')
49- git push --follow-tags --no-verify
50- echo "new-version=${NEW_VERSION}" >> $GITHUB_OUTPUT
51- if : inputs.version && inputs.version != 'none'
52-
53- - name : Set up NPM 🔑
54- run : npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
55-
56- - name : Publish 🚀
57- run : npm publish --access public
58-
59- - name : Create release ⛩️
60- uses : softprops/action-gh-release@v2
61- with :
62- tag_name : ${{ steps.version.outputs.new-version }}
18+ uses : infinitaslearning/workflow-publish-public-module/.github/workflows/publish-module.yaml@v1
19+ with :
20+ version : ${{ inputs.version }}
21+ secrets : inherit
Original file line number Diff line number Diff line change 1+ ### What's changed
2+
3+ - Initial release
4+
5+ ---
Original file line number Diff line number Diff line change 11{
2- "name" : " systemic-ts-service-runner" ,
3- "version" : " 1 .0.1 " ,
2+ "name" : " @ilpt/ systemic-ts-service-runner" ,
3+ "version" : " 0 .0.0 " ,
44 "description" : " Service runner for systemic-ts" ,
55 "types" : " dist/index.d.ts" ,
66 "main" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments