Skip to content

Commit

Permalink
Possible workflow fix, added .npmignore file and `package-lock.json…
Browse files Browse the repository at this point in the history
… changes`
  • Loading branch information
David committed Oct 29, 2021
1 parent 1102f12 commit 8123102
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ jobs:
with:
name: ${{ github.run_id }}

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "14"
registry-url: "https://registry.npmjs.org"

- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_AUTH_TOKEN}
npm publish --ignore-scripts --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/*
!package.json
!package-lock.json
!README.md
!lib/**/*
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8123102

Please sign in to comment.