Skip to content

Commit 6199867

Browse files
authored
Update publish.yml
1 parent c5f19e7 commit 6199867

File tree

1 file changed

+1
-51
lines changed

1 file changed

+1
-51
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Package and Publish
1+
name: Package and Publish to PyPi
22

33
on:
44
release:
@@ -77,53 +77,3 @@ jobs:
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 }}

0 commit comments

Comments
 (0)