File tree Expand file tree Collapse file tree 1 file changed +1
-51
lines changed
Expand file tree Collapse file tree 1 file changed +1
-51
lines changed Original file line number Diff line number Diff line change 1- name : Package and Publish
1+ name : Package and Publish to PyPi
22
33on :
44 release :
7777 password : ${{ secrets.PYPI_API_TOKEN }}
7878 packages_dir : chartlets.py/dist
7979 verbose : true
80-
81- npm-tests :
82- runs-on : ubuntu-latest
83- strategy :
84- matrix :
85- node-version : [16.x, 18.x, 20.x]
86- # See supported Node.js release schedule at
87- # https://nodejs.org/en/about/releases/
88- defaults :
89- run :
90- working-directory : chartlets.js
91-
92- steps :
93- - uses : actions/checkout@v3
94- - name : Use Node.js ${{ matrix.node-version }}
95- uses : actions/setup-node@v3
96- with :
97- node-version : ${{ matrix.node-version }}
98- cache : ' npm'
99- cache-dependency-path : chartlets.js/package-lock.json
100-
101- - run : npm ci
102- - run : npm run lint
103- - run : npm run build
104- - run : npm run test
105-
106- npm-Deploy :
107- name : Publish TS-React Package to npmjs
108- runs-on : ubuntu-latest
109- needs : npm-tests
110- defaults :
111- run :
112- working-directory : chartlets.js
113-
114- steps :
115- - uses : actions/checkout@v4
116-
117- - name : Set up Node.js
118- uses : actions/setup-node@v4
119- with :
120- node-version : ' 18.x'
121- registry-url : ' https://registry.npmjs.org'
122- cache : ' npm'
123- cache-dependency-path : chartlets.js/package-lock.json
124-
125- - run : npm ci
126- - run : npm run build
127- - run : npm publish --access public
128- env :
129- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments