Skip to content

Commit

Permalink
Fixing complaints about NPM file + changing to NPM-Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Nesbitt committed Mar 5, 2024
1 parent 11232d3 commit 0824243
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,17 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Build the library
run: npm install && npm run build
- name: Install requirements
run: npm install

- name: Build Library
run: npm run build

- name: Move README and package file to build directory
run: cp package.json ./dist && cp README.md ./dist

- name: Publish the library
run: npm run deploy
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: "./dist"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Nathan Nesbitt",
"repository": {
"type": "git",
"url" : "git://github.com/Nathan-Nesbitt/seaweedts"
"url" : "git://github.com/Nathan-Nesbitt/seaweedts.git"
},
"license": "ISC",
"dependencies": {
Expand Down

0 comments on commit 0824243

Please sign in to comment.