change publish-npm job

This commit is contained in:
Jonas Duri 2023-11-25 09:53:22 +01:00
parent e5e4a05bea
commit c4617d6ab5
2 changed files with 5 additions and 10 deletions

View File

@ -71,15 +71,10 @@ jobs:
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' # Specify your Node.js version here node-version: '20' # Specify your Node.js version here
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies - run: npm ci
run: npm install - run: npm run build
- run: npm publish
- name: Build
run: npm run build
- name: Publish to NPM
run: npm publish
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

2
.npmrc
View File

@ -1 +1 @@
registry=https://registry.npmjs.org registry=https://registry.npmjs.org/