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
with:
node-version: '20' # Specify your Node.js version here
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Publish to NPM
run: npm publish
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

2
.npmrc
View File

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